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