Remove usage of {describe, it}.each (#1746)

* Remove usage of {describe, it}.each

* Bump dev

* Reference test types once per module
This commit is contained in:
Jaco
2023-02-24 10:10:07 +02:00
committed by GitHub
parent d1d6fc631c
commit 40dc599acc
37 changed files with 620 additions and 1081 deletions
+11 -9
View File
@@ -18,17 +18,19 @@ describe('scryptEncode', (): void => {
await waitReady();
});
describe.each([false, true])('onlyJs=%p', (onlyJs): void => {
it('generates a known output', (): void => {
expect(
scryptEncode(KNOWN_TEST, KNOWN_SALT, undefined, onlyJs)
).toEqual({
params: DEFAULT_PARAMS,
password: KNOWN_PASS,
salt: KNOWN_SALT
for (const onlyJs of [false, true]) {
describe(`onlyJs=${(onlyJs && 'true') || 'false'}`, (): void => {
it('generates a known output', (): void => {
expect(
scryptEncode(KNOWN_TEST, KNOWN_SALT, undefined, onlyJs)
).toEqual({
params: DEFAULT_PARAMS,
password: KNOWN_PASS,
salt: KNOWN_SALT
});
});
});
});
}
perfWasm('scryptEncode', 4, (input, onlyJs) =>
scryptEncode(input, input, undefined, onlyJs)