Skip to content

Commit 9873f27

Browse files
committed
Add test for non-asset asset
1 parent bb246e6 commit 9873f27

3 files changed

Lines changed: 506 additions & 0 deletions

File tree

test/analyzer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ describe('Analyzer', function () {
155155
expect(chartData).to.containSubset(require('./stats/with-modules-in-chunks/expected-chart-data'));
156156
});
157157

158+
it('should support stats files with non-asset asset', async function () {
159+
generateReportFrom('with-non-asset-asset/stats.json');
160+
await expectValidReport({bundleLabel: 'bundle.js'});
161+
});
162+
158163
describe('options', function () {
159164
describe('title', function () {
160165
it('should take the --title option', async function () {

test/stats/with-non-asset-asset/bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)