Skip to content

Commit 766aacb

Browse files
committed
added test
1 parent a92b2e2 commit 766aacb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/cli.spec.js

+19
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,24 @@ describe('cli.js', () => {
223223

224224
});
225225
});
226+
227+
it('should create the both extended library files', done => {
228+
cli.generateLibraryFile(testCwd, {
229+
extended: true,
230+
cssMapping: true,
231+
cssMappingMin: true
232+
}, (err, data) => {
233+
const cssMapping = fs.readFileSync(testCwd + '/renaming_map.js', 'utf8');
234+
const cssMappingMin = fs.readFileSync(testCwd + '/renaming_map_min.js', 'utf8');
235+
236+
expect(err).to.not.exist;
237+
238+
// TODO read variable and check values
239+
// expect(cssMapping['jp-block']).to.equal('a');
240+
241+
done();
242+
243+
});
244+
});
226245
});
227246
});

0 commit comments

Comments
 (0)