Skip to content

Commit cc1d442

Browse files
author
Rafael Perello
committed
chore: added two more asserts for isScoped and isScopedModule
1 parent 4a81f0a commit cc1d442

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

tests/src/core/importType.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,14 @@ describe('importType(name)', function () {
241241

242242
it('correctly identifies scoped modules with `isScopedModule`', () => {
243243
expect(isScopedModule('@/abc')).to.equal(false);
244+
expect(isScopedModule('@/abc/def')).to.equal(false);
244245
expect(isScopedModule('@a/abc')).to.equal(true);
245246
expect(isScopedModule('@a/abc/def')).to.equal(true);
246247
});
247248

248249
it('correctly identifies scoped modules with `isScoped`', () => {
249250
expect(isScoped('@/abc')).to.equal(false);
251+
expect(isScoped('@/abc/def')).to.equal(false);
250252
expect(isScoped('@a/abc')).to.equal(true);
251253
expect(isScoped('@a/abc/def')).to.equal(true);
252254
});

0 commit comments

Comments
 (0)