diff --git a/src/common/constants.js b/src/common/constants.js
index 4e13b4f..4933723 100644
--- a/src/common/constants.js
+++ b/src/common/constants.js
@@ -150,11 +150,10 @@ module.exports = {
created: {
title: 'Your project has been created, and we\'re ready for your specification',
content: data => `Hello, Coder here! Your project '${data.projectName}' has been created successfully. For your next step, please head over to the Specification 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 support@topcoder.com.`,
- disabled: true,
},
submittedForReview: {
- title: 'Your project is being reviewed. Provide additional info if you have it.',
- content: data => `Hello, Coder here! Thanks for submitting your project ${data.projectName}! 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. Meanwhile, if have any additional project information or documents to upload, please head over to the Specification section. Get stuck or need help? Email us at support@topcoder.com.`,
+ title: 'Your project has been submitted for review',
+ content: data => `Hello, it's Coder again. Thanks for submitting your project ${data.projectName}! 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.`,
},
activated: {
title: 'Work on your project has begun',
diff --git a/src/test/app.test.js b/src/test/app.test.js
index e75f18d..fec3579 100644
--- a/src/test/app.test.js
+++ b/src/test/app.test.js
@@ -237,10 +237,14 @@ describe('app', () => {
});
describe('`project.draft-created` event', () => {
- it('should not create `Project.Created` notification as it is disabled now', (done) => {
+ it('should create `Project.Created` notification', (done) => {
sendTestEvent(sampleEvents.draftCreated, 'project.draft-created');
setTimeout(() => {
- sinon.assert.notCalled(spy);
+ const expectedTitle = 'Your project has been created, and we\'re ready for your specification';
+ const expectedBody = 'Hello, Coder here! Your project \'test\' has been created successfully. For your next step, please head over to the Specification 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 support@topcoder.com.';
+ const params = spy.lastCall.args;
+ assert.equal(params[2], expectedTitle);
+ assert.equal(params[3], expectedBody);
done();
}, testTimeout);
});
@@ -258,8 +262,8 @@ describe('app', () => {
sendTestEvent(sampleEvents.updatedInReview, 'project.updated');
setTimeout(() => {
assertCount += 1;
- const expectedTitle = 'Your project is being reviewed. Provide additional info if you have it.';
- const expectedBody = 'Hello, Coder here! Thanks for submitting your project test! 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. Meanwhile, if have any additional project information or documents to upload, please head over to the Specification section. Get stuck or need help? Email us at support@topcoder.com.';
+ const expectedTitle = 'Your project has been submitted for review';
+ const expectedBody = 'Hello, it\'s Coder again. Thanks for submitting your project test! 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.';
let params = spy.lastCall.args;
assert.equal(params[2], expectedTitle);
assert.equal(params[3], expectedBody);