File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- exports [ 'test nodeunit' ] = {
4
- 'buildPatternData - should merge all JSON files in the data folder except listitems' : function ( test ) {
5
- var fs = require ( 'fs-extra' ) ;
6
- var plMain = require ( '../core/lib/patternlab' ) ;
7
- var data_dir = './test/files/_data/' ;
3
+ var tap = require ( 'tap' ) ;
8
4
9
- var dataResult = plMain . build_pattern_data ( data_dir , fs ) ;
10
- test . equals ( dataResult . data , "test" ) ;
11
- test . equals ( dataResult . foo , "bar" ) ;
12
- test . equals ( dataResult . test_list_item , undefined ) ;
13
- test . done ( ) ;
14
- }
15
- } ;
5
+ tap . test ( 'buildPatternData - should merge all JSON files in the data folder except listitems' , function ( test ) {
6
+ var fs = require ( 'fs-extra' ) ;
7
+ var plMain = require ( '../core/lib/patternlab' ) ;
8
+ var data_dir = './test/files/_data/' ;
9
+
10
+ var dataResult = plMain . build_pattern_data ( data_dir , fs ) ;
11
+ test . equals ( dataResult . data , "test" ) ;
12
+ test . equals ( dataResult . foo , "bar" ) ;
13
+ test . equals ( dataResult . test_list_item , undefined ) ;
14
+ test . end ( ) ;
15
+ } ) ;
You can’t perform that action at this time.
0 commit comments