const assert = require("assert");
const fs = require("fs");
const path = require("path");

const source = fs.readFileSync(
  path.resolve(
    __dirname,
    "../../src/views/ccdiProject/components/detail/RiskModelSection.vue"
  ),
  "utf8"
);

[
  "selectedModelCodes",
  "toggleModelSelection",
  "this.selectedModelCodes.includes(modelCode)",
  "this.selectedModelCodes = this.selectedModelCodes.filter",
].forEach((token) => assert(source.includes(token), token));
