Skip to content

Commit

Permalink
Merge pull request #1092 from stealjs/bu
Browse files Browse the repository at this point in the history
Add more advanced bundle wildcard tests
  • Loading branch information
matthewp committed Nov 13, 2018
2 parents f8ecfd4 + 397107e commit 26eff78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Empty file.
1 change: 1 addition & 0 deletions test/bundle/pages/restaurant/list/list.js
@@ -0,0 +1 @@
module.exports = "list";
7 changes: 5 additions & 2 deletions test/bundle_test.js
Expand Up @@ -40,15 +40,18 @@ describe("find bundle", function () {
var bundles = findbundle(fakeLoader);
assert.deepEqual([
'pages/home/home',
'pages/restaurant/list/list'
], bundles);
});

it("trailing slash and wildcard extension", function() {
fakeLoader["bundle"] = ["pages/**/", "pages/*.component"];
fakeLoader["bundle"] = ["pages/**/", "pages/**/*.component"];
var bundles = findbundle(fakeLoader);
assert.deepEqual([
'pages/home/home',
'pages/cart.component'
'pages/restaurant/list/list',
'pages/cart.component',
'pages/order/history.component'
], bundles);
});
});
Expand Down

0 comments on commit 26eff78

Please sign in to comment.