From 1cab43dcb07620e4b834cbc89d905efcf3773ec5 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Fri, 18 Oct 2024 15:13:53 +0200 Subject: [PATCH] improve test --- test/jira/Jira2718.cfc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/jira/Jira2718.cfc b/test/jira/Jira2718.cfc index dfba06c3ae..222ae8f62a 100644 --- a/test/jira/Jira2718.cfc +++ b/test/jira/Jira2718.cfc @@ -63,17 +63,17 @@ function testScriptFunctionCreateTimespan(){ var initVal=scriptFunctionCreateTimespan(); sleep(1); - assertEquals(true,initVal == scriptFunctionCreateTimespan()); + expect(initVal).toBe(scriptFunctionCreateTimespan()); sleep(25); - assertEquals(false,initVal == scriptFunctionCreateTimespan()); + expect(initVal).notToBe(scriptFunctionCreateTimespan()); } function testTagFunctionCreateTimespan(){ var initVal=tagFunctionCreateTimespan(); sleep(1); - assertEquals(true,initVal == tagFunctionCreateTimespan()); + expect(initVal).toBe(tagFunctionCreateTimespan()); sleep(25); - assertEquals(false,initVal == tagFunctionCreateTimespan()); + expect(initVal).notToBe(tagFunctionCreateTimespan()); } // createTimeSpan(0,0,0,0,25)