Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions packages/ember-cli-fastboot/test/asset-rewriting-test.js

This file was deleted.

21 changes: 21 additions & 0 deletions test-packages/basic-app/test/asset-rewriting-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const chai = require('chai');
const expect = chai.expect;
const glob = require("glob");
const execa = require("execa");

chai.use(require('chai-fs'));

describe.only('rewriting HTML', function () {
this.timeout(100000);

it('builds an index.html that points to the browser build', async function () {

await execa("yarn", ["build", "--environment=production"]);

let appPath = glob.sync('dist/assets/basic-app-*.js')[0];
let matches = appPath.match(/dist\/assets\/basic-app-(.*).js/);
let appSHA = matches[1];

expect('dist/index.html').to.have.content.that.match(new RegExp(appSHA));
});
});