UNPKG

402 BJavaScriptView Raw
1"use strict";
2
3const
4Path = require("path"),
5Module = require( "../lib/module" );
6
7
8describe('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});