personalPublishFlow.test.js 537 B

1234567891011121314
  1. const assert = require('assert');
  2. const fs = require('fs');
  3. const source = fs.readFileSync('pagesPublish/fillTeamInfo.vue', 'utf8');
  4. assert.match(
  5. source,
  6. /if\(this\.next && this\.type != 1 && this\.creationState\.backgroundSurveyStatus !== 'COMPLETED'\)/
  7. );
  8. assert.match(source, /this\.openCoachBackgroundSurvey\(teamId\)/);
  9. assert.match(source, /if\(this\.next && !this\.creationState\.teamQuestionnaireId\)/);
  10. assert.match(source, /url:backgroundIntroUrl\(/);
  11. console.log('personalPublishFlow.test.js: all assertions passed');