mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
fix: simplify UUID argument names, use hint for more info
This commit is contained in:
parent
2cf3642493
commit
575eade84d
2 changed files with 8 additions and 10 deletions
|
@ -581,13 +581,13 @@ Password: 282760`;
|
|||
}),
|
||||
|
||||
...[1, 3, 4, 5, 6, 7].map(version => it(`Generate UUID v${version}`, () => {
|
||||
const result = chef.generateUUID("", { "UUID version": `v${version}` }).toString();
|
||||
const result = chef.generateUUID("", { "version": `v${version}` }).toString();
|
||||
assert.ok(result);
|
||||
assert.strictEqual(result.length, 36);
|
||||
})),
|
||||
|
||||
...[1, 3, 4, 5, 6, 7].map(version => it(`Analyze UUID v${version}`, () => {
|
||||
const uuid = chef.generateUUID("", { "UUID version": `v${version}` }).toString();
|
||||
const uuid = chef.generateUUID("", { "version": `v${version}` }).toString();
|
||||
const result = chef.analyseUUID(uuid).toString();
|
||||
const expected = `UUID version: ${version}`;
|
||||
assert.strictEqual(result, expected);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue