const path = require('path'); const assert = require('chai').assert; const {openAndFix} = require('../scripts/helpers'); describe('npm run fix-index', () => { it('should remove / in front of /static', () => { const updatedFileContents = openAndFix(path.join(__dirname, 'index.html')); const expectedContents = 'Flasher.js
'; assert(updatedFileContents === expectedContents, "expectedContents didn't match the updatedFileContents"); }); });