Permalink
Browse files

fix(StaticViewStrategy): set formal ".moduleId"

  • Loading branch information...
StrahilKazlachev authored and EisenbergEffect committed Sep 6, 2018
1 parent 765a2e6 commit 86ea2fde58867160ff92ce19534c8e83af63b4ce
Showing with 6 additions and 0 deletions.
  1. +1 −0 src/view-strategy.js
  2. +5 −0 test/view-strategy.spec.js
@@ -280,6 +280,7 @@ export class StaticViewStrategy {
this.dependencies = config.dependencies || [];
this.factoryIsReady = false;
this.onReady = null;
this.moduleId = 'undefined';
}
/**
@@ -47,6 +47,11 @@ describe('ViewLocator', () => {
expect(ex.message).not.toContain('Cannot determine default view strategy for object.');
}).then(done);
});
it('sets formal "moduleId"', () => {
const strategy = new StaticViewStrategy('<template><input value.bind="value" /></template>');
expect(strategy.moduleId).toBeDefined();
});
});
it('loads dependencies', (done) => {

0 comments on commit 86ea2fd

Please sign in to comment.