first working version

This commit is contained in:
2016-10-12 14:01:15 +02:00
parent 7e65012621
commit f97c97f41a
11 changed files with 71 additions and 18 deletions

View File

@@ -1,2 +1,16 @@
import 'typings-test'
import * as should from 'should'
import * as smartsystem from '../dist/index'
import * as _moduleExample from './moduleExample'
describe('smartsystem', function () {
it('should load a module lazily', function (done) {
let lazyModuleExample = new smartsystem.LazyModule<typeof _moduleExample>('./test/moduleExample.js')
lazyModuleExample.load().then(m => {
console.log(m.exportedTestBoolean)
done()
})
})
})