From c56c203d6af7b9bc1be09a82d33fdbe7aea7f331 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 12 May 2020 20:48:35 +0200 Subject: [PATCH] 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 --- 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 2f96acc..442e7f1 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();