@@ -6,7 +6,7 @@ const DependenciesBlockVariable = require("../lib/DependenciesBlockVariable");
66describe ( "DependenciesBlockVariable" , ( ) => {
77 let DependenciesBlockVariableInstance , dependencyMock , sandbox ;
88
9- before ( ( ) => {
9+ beforeEach ( ( ) => {
1010 sandbox = sinon . sandbox . create ( ) ;
1111 dependencyMock = {
1212 constructor : {
@@ -26,7 +26,7 @@ describe("DependenciesBlockVariable", () => {
2626
2727 describe ( "hasDependencies" , ( ) =>
2828 it ( "returns `true` if has dependencies" , ( ) =>
29- expect ( DependenciesBlockVariableInstance . hasDependencies ( ) ) . toBe ( true ) ;
29+ expect ( DependenciesBlockVariableInstance . hasDependencies ( ) ) . toBe ( true ) ) ) ;
3030
3131 describe ( "disconnect" , ( ) =>
3232 it ( "trigger dependencies disconnection" , ( ) => {
@@ -36,27 +36,27 @@ describe("DependenciesBlockVariable", () => {
3636
3737 describe ( "updateHash" , ( ) => {
3838 let hash ;
39- before ( ( ) => {
39+ beforeEach ( ( ) => {
4040 hash = {
4141 update : sandbox . spy ( )
4242 } ;
4343 DependenciesBlockVariableInstance . updateHash ( hash ) ;
4444 } ) ;
4545
4646 it ( "should update hash dependencies with name" , ( ) =>
47- expect ( hash . update . calledWith ( "dependencies-name" ) ) . toBe ( true ) ;
47+ expect ( hash . update . calledWith ( "dependencies-name" ) ) . toBe ( true ) ) ;
4848
4949 it ( "should update hash dependencies with expression" , ( ) =>
50- expect ( hash . update . calledWith ( "expression" ) ) . toBe ( true ) ;
50+ expect ( hash . update . calledWith ( "expression" ) ) . toBe ( true ) ) ;
5151
5252 it ( "should update hash inside dependencies" , ( ) =>
53- expect ( dependencyMock . updateHash . calledOnce ) . toBe ( true ) ;
53+ expect ( dependencyMock . updateHash . calledOnce ) . toBe ( true ) ) ;
5454 } ) ;
5555
5656 describe ( "expressionSource" , ( ) => {
5757 let dependencyTemplates , applyMock ;
5858
59- before ( ( ) => ( applyMock = sandbox . spy ( ) ) ) ;
59+ beforeEach ( ( ) => ( applyMock = sandbox . spy ( ) ) ) ;
6060
6161 it ( "applies information inside dependency templates" , ( ) => {
6262 dependencyTemplates = {
0 commit comments