From 2621ec2646af0b8ebacb31a247bfd49edb4c5c19 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 12 May 2020 08:49:16 +0200 Subject: [PATCH] test: remove uuid require in spec_03_tests.js 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 --- test/spec_0_3_tests.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/spec_0_3_tests.js b/test/spec_0_3_tests.js index 2f96acce..442e7f19 100644 --- a/test/spec_0_3_tests.js +++ b/test/spec_0_3_tests.js @@ -1,9 +1,8 @@ const expect = require("chai").expect; const Spec03 = require("../lib/specs/spec_0_3.js"); const { CloudEvent } = require("../index.js"); -const { v4: uuidv4 } = require("uuid"); -const id = uuidv4(); +const id = "97699ec2-a8d9-47c1-bfa0-ff7aa526f838"; const type = "com.github.pull.create"; const source = "urn:event:from:myapi/resourse/123"; const time = new Date();