fix: use UUID v4 by default, for backward compatibility

This commit is contained in:
Bart van Andel 2025-04-05 22:49:54 +02:00
parent de5b03f854
commit 2cf3642493
2 changed files with 9 additions and 0 deletions

View file

@ -593,6 +593,14 @@ Password: 282760`;
assert.strictEqual(result, expected);
})),
it("Generate UUID using defaults", () => {
const uuid = chef.generateUUID();
assert.ok(uuid);
const analysis = chef.analyseUUID(uuid).toString();
assert.strictEqual(analysis, "UUID version: 4");
}),
it("Gzip, Gunzip", () => {
assert.strictEqual(chef.gunzip(chef.gzip("Down To The Wire")).toString(), "Down To The Wire");
}),