Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 08b6d8d

Browse files
author
Vikas Agarwal
committed
fixing unit test
1 parent 0f475e7 commit 08b6d8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/app.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ describe('app', () => {
241241
sendTestEvent(sampleEvents.draftCreated, 'project.draft-created');
242242
setTimeout(() => {
243243
const expectedTitle = 'Your project has been created, and we\'re ready for your specification';
244-
const expectedBody = 'Hello, Coder here! Your project \'test\' has been created successfully. For your next step, please head over to the <a href="https://connect.topcoder-dev.com/projects/1/specification/" rel="nofollow">Specification</a> section and answer all of the required questions. If you already have a document with your requirements, just verify it against our checklist and then upload it. Once you\'re done, hit the "Submit for Review" button on the Specification. Get stuck or need help? Email us at <a href="mailto:support@topcoder.com?subject=Question%20Regarding%20My%20New%20Topcoder%20Connect%20Project" rel="nofollow">support@topcoder.com</a>.';
244+
const expectedBody = 'Hello, Coder here! Your project \'test\' has been created successfully. For your next step, please head over to the <a href="https://connect.topcoder-dev.com/projects/1/scope/" rel="nofollow">Scope</a> section and answer all of the required questions. If you already have a document with your requirements, just verify it against our checklist and then upload it. Once you\'re done, hit the "Submit for Review" button on the Specification. Get stuck or need help? Email us at <a href="mailto:support@topcoder.com?subject=Question%20Regarding%20My%20New%20Topcoder%20Connect%20Project" rel="nofollow">support@topcoder.com</a>.';
245245
const params = spy.lastCall.args;
246246
assert.equal(params[2], expectedTitle);
247247
assert.equal(params[3], expectedBody);
@@ -264,9 +264,7 @@ describe('app', () => {
264264
assertCount += 1;
265265
const expectedTitle = 'Your project has been submitted for review';
266266
const expectedBody = 'Hello, it\'s Coder again. Thanks for submitting your project <a href="https://connect.topcoder-dev.com/projects/1/" rel="nofollow">test</a>! I\'ve used my super computational powers to route it to one of our trusty humans. They\'ll get back to you in 1-2 business days.';
267-
let params = spy.lastCall.args;
268-
assert.equal(params[2], expectedTitle);
269-
assert.equal(params[3], expectedBody);
267+
sinon.assert.notCalled(spy)
270268
params = slackSpy.lastCall.args;
271269
assert.deepEqual(params[1], expectedManagerSlackNotification);
272270
checkAssert(assertCount, callbackCount, done);

0 commit comments

Comments
 (0)