Skip to content

Commit

Permalink
fix(schematics): refactored the imports structure
Browse files Browse the repository at this point in the history
  • Loading branch information
agugan committed Sep 8, 2019
1 parent d065a55 commit d6af3ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as from<%= classify(name) %> from './<%= dasherize(name) %>.actions';
import * as <%= classify(name) %>Actions from './<%= dasherize(name) %>.actions';

describe('<%= classify(name) %>', () => {
it('should create an instance', () => {
expect(new from<%= classify(name)%>.Load<%= classify(name) %>s()).toBeTruthy();
expect(new <%= classify(name)%>Actions.Load<%= classify(name) %>s()).toBeTruthy();
});
});
2 changes: 1 addition & 1 deletion modules/schematics/src/action/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Action Schematic', () => {
`${projectPath}/src/app/foo.actions.spec.ts`
);

expect(fileContent).toMatch(/expect\(new fromFoo.LoadFoos\(\)\)/);
expect(fileContent).toMatch(/expect\(new FooActions.LoadFoos\(\)\)/);
});
});

Expand Down

0 comments on commit d6af3ca

Please sign in to comment.