Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: not sure if this is the correct failing test - hbs should be able to take a source argument #43

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/parse-module-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
const parseModuleName = require('../lib/parse-module-name');

describe('parse-module-name helper', function() {
it('should be able to take a path and prepend it when using a local component test', function() {
expect(
parseModuleName('emberconf/src/ui/components/foo-bar/baz/component-test.js', 'baz')
).toEqual('src/ui/components/foo-bar/baz/template.hbs');
});

it('should return application template when using a route local -component', function() {
expect(
parseModuleName('emberconf/src/ui/routes/application/-components/footer-prompt/component-test.js')
Expand Down