1 | ;
|
2 |
|
3 | const
|
4 | Path = require("path"),
|
5 | Module = require( "../lib/module" );
|
6 |
|
7 |
|
8 | describe('Module "Module"', function() {
|
9 | it('should compute correct pathes', function() {
|
10 | const module = new Module( "tfw.view.textbox", "support/module/data/srcA/" );
|
11 | expect(module.pathJs).toEqual(
|
12 | Path.resolve( ".", "support/module/data/srcA/mod/tfw/view/textbox.js" ) );
|
13 | });
|
14 | });
|