Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros committed Mar 18, 2024
1 parent e174456 commit 803c922
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/core/test/helpers/namespace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ describe('createNamespaceStrategy', () => {
it('should throw when no unique namespace can be generated and hash slice size is larger then hash length', () => {
function getErrorMessage() {
try {
defaultNoMatchHandler(false, 'x-1', '/package/x2.st.css', '/package/x1.st.css');
defaultNoMatchHandler(
false,
'x-1',
'/package/x2.st.css',
new Map([['x-1', '/package/x1.st.css']])
);
} catch (e) {
return (e as Error).message;
}
Expand All @@ -140,7 +145,12 @@ describe('createNamespaceStrategy', () => {
it('should throw when no unique namespace can be generated in strict mode', () => {
function getErrorMessage() {
try {
defaultNoMatchHandler(true, 'x', '/package/x1.st.css', '/package/x.st.css');
defaultNoMatchHandler(
true,
'x',
'/package/x1.st.css',
new Map([['x', '/package/x.st.css']])
);
} catch (e) {
return (e as Error).message;
}
Expand Down

0 comments on commit 803c922

Please sign in to comment.