Skip to content

Commit c56c203

Browse files
authored
test: remove uuid require in spec_03_tests.js (#145)
This commit removes the require of uuid from this test and uses a hardcoded value for the 'id' constant instead. The motivation for this is that the value for 'id' does not need to be generated for each test run, and fewer requires helps readabilitly I find. Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent b7b4912 commit c56c203

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: test/spec_0_3_tests.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
const expect = require("chai").expect;
22
const Spec03 = require("../lib/specs/spec_0_3.js");
33
const { CloudEvent } = require("../index.js");
4-
const { v4: uuidv4 } = require("uuid");
54

6-
const id = uuidv4();
5+
const id = "97699ec2-a8d9-47c1-bfa0-ff7aa526f838";
76
const type = "com.github.pull.create";
87
const source = "urn:event:from:myapi/resourse/123";
98
const time = new Date();

0 commit comments

Comments
 (0)