mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
refactor(packages/stdlib): add more accurate expectation RangeError for bitsflags
This commit is contained in:
@@ -21,7 +21,7 @@ describe('flagsGenerator', () => {
|
||||
generateFlag();
|
||||
}
|
||||
|
||||
expect(() => generateFlag()).toThrow(RangeError);
|
||||
expect(() => generateFlag()).toThrow(new RangeError('Cannot create more than 31 flags'));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user