@js-bits/enumerate
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -31,3 +31,3 @@ const converters = new Map(); | ||
} | ||
return result; | ||
return Object.freeze(result); | ||
}; | ||
@@ -34,0 +34,0 @@ |
@@ -115,2 +115,11 @@ import enumerate from './index.js'; | ||
}); | ||
describe('when new property is assigned to the return object', () => { | ||
test('should throw an error', () => { | ||
const result = enumerate`A B C`; | ||
expect(() => { | ||
result.D = 'D'; | ||
}).toThrow(); | ||
}); | ||
}); | ||
}); |
{ | ||
"name": "@js-bits/enumerate", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Easy to use, Symbol-based enum implementation", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8410
166