1- var should = require ( "should" ) ;
2- var sinon = require ( "sinon" ) ;
3- var NullDependency = require ( "../lib/dependencies/NullDependency" ) ;
1+ const should = require ( "should" ) ;
2+ const sinon = require ( "sinon" ) ;
3+ const NullDependency = require ( "../lib/dependencies/NullDependency" ) ;
44
5- describe ( "NullDependency" , function ( ) {
6- var env ;
5+ describe ( "NullDependency" , ( ) => {
6+ let env ;
77
8- beforeEach ( function ( ) {
9- env = { } ;
10- } ) ;
8+ beforeEach ( ( ) => env = { } ) ;
119
12- it ( "is a function" , function ( ) {
13- NullDependency . should . be . a . Function ( ) ;
14- } ) ;
10+ it ( "is a function" , ( ) => NullDependency . should . be . a . Function ( ) ) ;
1511
16- describe ( "when created" , function ( ) {
17- beforeEach ( function ( ) {
18- env . nullDependency = new NullDependency ( ) ;
19- } ) ;
12+ describe ( "when created" , ( ) => {
13+ beforeEach ( ( ) => env . nullDependency = new NullDependency ( ) ) ;
2014
21- it ( "has a null type" , function ( ) {
22- env . nullDependency . type . should . be . exactly ( "null" ) ;
23- } ) ;
15+ it ( "has a null type" , ( ) => env . nullDependency . type . should . be . exactly ( "null" ) ) ;
2416
25- it ( "is not an equal resource" , function ( ) {
26- env . nullDependency . isEqualResource ( ) . should . be . False ( ) ;
27- } ) ;
17+ it ( "is not an equal resource" , ( ) => env . nullDependency . isEqualResource ( ) . should . be . False ( ) ) ;
2818
29- it ( "has update hash function" , function ( ) {
30- env . nullDependency . updateHash . should . be . Function ( ) ;
31- } ) ;
19+ it ( "has update hash function" , ( ) => env . nullDependency . updateHash . should . be . Function ( ) ) ;
3220
33- it ( "does not update hash" , function ( ) {
21+ it ( "does not update hash" , ( ) => {
3422 const hash = {
3523 update : sinon . stub ( )
3624 } ;
@@ -39,19 +27,13 @@ describe("NullDependency", function() {
3927 } ) ;
4028 } ) ;
4129
42- describe ( "Template" , function ( ) {
43- it ( "is a function" , function ( ) {
44- NullDependency . Template . should . be . a . Function ( ) ;
45- } ) ;
30+ describe ( "Template" , ( ) => {
31+ it ( "is a function" , ( ) => NullDependency . Template . should . be . a . Function ( ) ) ;
4632
47- describe ( "when created" , function ( ) {
48- beforeEach ( function ( ) {
49- env . nullDependencyTemplate = new NullDependency . Template ( ) ;
50- } ) ;
33+ describe ( "when created" , ( ) => {
34+ beforeEach ( ( ) => env . nullDependencyTemplate = new NullDependency . Template ( ) ) ;
5135
52- it ( "has apply function" , function ( ) {
53- env . nullDependencyTemplate . apply . should . be . Function ( ) ;
54- } ) ;
36+ it ( "has apply function" , ( ) => env . nullDependencyTemplate . apply . should . be . Function ( ) ) ;
5537 } ) ;
5638 } ) ;
5739} ) ;
0 commit comments