-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(all): fix dependency to materialize
- Loading branch information
1 parent
0aa3767
commit c872fa9
Showing
6 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,6 @@ System.config({ | |
"*": "*.js", | ||
"github:*": "jspm_packages/github/*.js", | ||
"npm:*": "jspm_packages/npm/*.js" | ||
}, | ||
"shim": { | ||
"packages": { | ||
"materialize": { | ||
"main": "materialize", | ||
"format": "global", | ||
"deps": "jquery", | ||
"exports": "Materialize" | ||
} | ||
} | ||
} | ||
}); | ||
|
||
|
@@ -23,7 +13,7 @@ System.config({ | |
"aurelia-dependency-injection": "github:aurelia/[email protected]", | ||
"aurelia-templating": "github:aurelia/[email protected]", | ||
"css": "github:systemjs/[email protected]", | ||
"jquery": "npm:[email protected]", | ||
"jquery": "github:components/[email protected]", | ||
"materialize": "github:dogfalo/[email protected]", | ||
"traceur": "github:jmcriffey/[email protected]", | ||
"traceur-runtime": "github:jmcriffey/[email protected]", | ||
|
@@ -59,8 +49,7 @@ System.config({ | |
"core-js": "npm:[email protected]" | ||
}, | ||
"github:dogfalo/[email protected]": { | ||
"css": "github:systemjs/[email protected]", | ||
"jquery": "github:components/[email protected]" | ||
"css": "github:systemjs/[email protected]" | ||
}, | ||
"github:jspm/[email protected]": { | ||
"assert": "npm:[email protected]" | ||
|
@@ -150,9 +139,6 @@ System.config({ | |
"npm:[email protected]": { | ||
"util": "github:jspm/[email protected]" | ||
}, | ||
"npm:[email protected]": { | ||
"process": "github:jspm/[email protected]" | ||
}, | ||
"npm:[email protected]": { | ||
"os": "github:jspm/[email protected]" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
describe('Dependencies config', () => { | ||
it('should load jQuery', () => { | ||
expect(jQuery).toBeDefined(); | ||
}); | ||
|
||
it('should register Materialize jQuery plugins', () => { | ||
expect($('div').sideNav).toBeDefined(); | ||
}); | ||
|
||
it('should register Materialize global object', () => { | ||
expect(Materialize).toBeDefined(); | ||
}); | ||
|
||
it('should register Materialize css', () => { | ||
var script = $('link').filter((i, e) => { | ||
return e.href.indexOf('materialize.css') >= 0; | ||
}); | ||
expect(script.length).toBe(1); | ||
}); | ||
}); |