smartsystem/test/test.ts

17 lines
499 B
TypeScript
Raw Normal View History

2016-10-12 12:01:15 +00:00
import 'typings-test'
2016-10-11 23:41:30 +00:00
import * as should from 'should'
import * as smartsystem from '../dist/index'
2016-10-12 12:01:15 +00:00
import * as _moduleExample from './moduleExample'
describe('smartsystem', function () {
it('should load a module lazily', function (done) {
2016-12-10 18:46:47 +00:00
let lazyModuleExample = new smartsystem.LazyModule<typeof _moduleExample>('../test/moduleExample.js',__dirname)
2016-10-12 12:01:15 +00:00
lazyModuleExample.load().then(m => {
console.log(m.exportedTestBoolean)
done()
})
})
})