Skip to content
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
14 changes: 14 additions & 0 deletions tests/unit/resolvers/classic/basic-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,20 @@ test("can lookup something in another namespace with different syntax", function
assert.equal(adapter, expected, 'default export was returned');
});

test("can lookup something in another namespace contains a @ sign in module prefix", function(assert) {
let expected = {};

define('@scope/other/components/foo-bar', [], function() {
assert.ok(true, "component was invoked properly");
return { default: expected }
})

const component = resolver.resolve('component:@scope/other@component:foo-bar');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const component = resolver.resolve('component:@scope/other@component:foo-bar');
const component = resolver.resolve('component:@scope/other@foo-bar');
Suggested change
const component = resolver.resolve('component:@scope/other@component:foo-bar');
const component = resolver.resolve('@scope/other@component:foo-bar');


assert.ok(component, 'component was returned');
assert.equal(component, expected, 'default export was returned');
});

test("can lookup a view in another namespace", function(assert) {
assert.expect(3);

Expand Down