Skip to content

Commit 93867c9

Browse files
committed
Update tests
1 parent 19fc4aa commit 93867c9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,17 @@ describe('unit', () => {
9292
});
9393

9494
describe('integration', () => {
95+
test('Hello world!', () => {
96+
expect(generateUuid('Hello world!')).toBe('d3486ae9-136e-5856-bc42-212385ea7970');
97+
});
98+
9599
test('should throw error because of the wrong value', () => {
96100
expect(() => generateUuid()).toThrowError();
97101
});
98102

99103
test('should throw error because of the wrong version', () => {
100-
expect(() => generateUuid('Hello', 'world', 1)).toThrowError();
104+
expect(() => generateUuid('Hello', 1)).toThrowError();
105+
expect(() => generateUuid('Hello', 'd3486ae9-136e-5856-bc42-212385ea7970', 1)).toThrowError();
101106
});
102107

103108
test('should generate uuid v3 from string', () => {

0 commit comments

Comments
 (0)