From 865b77b115a745871de4009fd373eae5c5f12f58 Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Fri, 4 Feb 2022 12:03:59 +0000 Subject: [PATCH] Fixed verification trigger test no issue --- .../test/verification-trigger.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghost/verification-trigger/test/verification-trigger.test.js b/ghost/verification-trigger/test/verification-trigger.test.js index 5c568cb88b..2415dbb69e 100644 --- a/ghost/verification-trigger/test/verification-trigger.test.js +++ b/ghost/verification-trigger/test/verification-trigger.test.js @@ -165,7 +165,7 @@ describe('Email verification flow', function () { } } }); - + new VerificationTrigger({ configThreshold: 2, Settings: { @@ -187,7 +187,7 @@ describe('Email verification flow', function () { eventStub.callCount.should.eql(1); eventStub.lastCall.lastArg.should.have.property('data.source'); eventStub.lastCall.lastArg.should.have.property('data.created_at'); - eventStub.lastCall.lastArg['data.source'].should.eql('data.source:api'); - eventStub.lastCall.lastArg['data.created_at'].should.startWith('data.created_at:>'); + eventStub.lastCall.lastArg['data.source'].should.eql(`data.source:'api'`); + eventStub.lastCall.lastArg['data.created_at'].should.startWith(`data.created_at:>'`); }); -}); \ No newline at end of file +});