File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,17 @@ describe('unit', () => {
9292} ) ;
9393
9494describe ( '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' , ( ) => {
You can’t perform that action at this time.
0 commit comments