@@ -50,30 +50,17 @@ function createFakePatternLab(customProps) {
50
50
return extend ( pl , customProps ) ;
51
51
}
52
52
53
- // tap.test('transformConfigPaths takes configuration.paths() and maps to a better key store', function (test) {
54
- // //arrange
55
- // var patternlab = createFakePatternLab({});
56
-
57
- // //act
58
- // var result = assetCopy.transformConfigPaths(patternlab.config.paths);
59
-
60
- // //assert
61
- // test.equals(result.img.source, './test/img');
62
- // test.equals(result.img.public, './test/output/img');
63
- // test.equals(result.css.source, './test/css');
64
- // test.equals(result.css.public, './test/output/css');
65
- // test.end();
66
- // });
67
-
68
- tap . test ( 'assetCopier does stuff' , function ( test ) {
53
+ tap . test ( 'transformConfigPaths takes configuration.paths() and maps to a better key store' , function ( test ) {
69
54
//arrange
70
55
var patternlab = createFakePatternLab ( { } ) ;
71
56
72
57
//act
73
-
74
- assetCopier . copyAssets ( patternlab . config . paths , { } ) ;
58
+ var result = assetCopier . transformConfigPaths ( patternlab . config . paths ) ;
75
59
76
60
//assert
77
-
61
+ test . equals ( result . img . source , './test/img' ) ;
62
+ test . equals ( result . img . public , './test/output/img' ) ;
63
+ test . equals ( result . css . source , './test/css' ) ;
64
+ test . equals ( result . css . public , './test/output/css' ) ;
78
65
test . end ( ) ;
79
- } )
66
+ } ) ;
0 commit comments