1
0
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:
2024-04-17 03:59:35 +07:00
parent 5bf6317673
commit 784457a507

View File

@@ -21,7 +21,7 @@ describe('flagsGenerator', () => {
generateFlag();
}
expect(() => generateFlag()).toThrow(RangeError);
expect(() => generateFlag()).toThrow(new RangeError('Cannot create more than 31 flags'));
});
});