-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Karma modified so that only vendor files are referenced from the build directory. Karma config moved to buildConfig/. Unit tests were added for the automated vendor services/ Also fixed a bug that has broken audio download links.
- Loading branch information
Showing
5 changed files
with
70 additions
and
15 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
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,50 @@ | ||
describe("The vendor services", function () { | ||
|
||
beforeEach(module("bawApp.vendorServices")); | ||
|
||
beforeEach(inject([function () { | ||
|
||
|
||
}])); | ||
|
||
it("checks that bawApp.vendorServices.auto has been created", function () { | ||
var vendorServicesAutoModule = angular.module("bawApp.vendorServices.auto"); | ||
expect(vendorServicesAutoModule).not.toBeNull(); | ||
}); | ||
|
||
it("checks bowser is not on the global scope", function () { | ||
expect(window.bowser).not.toBeDefined(); | ||
}); | ||
|
||
it("checks the bowser auto service was created", | ||
inject(["bowser", function (bowser) { | ||
expect(bowser).toBeDefined(); | ||
}])); | ||
|
||
it("checks moment is not on the global scope", function () { | ||
expect(window.moment).not.toBeDefined(); | ||
}); | ||
|
||
it("checks the moment auto service was created", | ||
inject(["moment", function (moment) { | ||
expect(moment).toBeDefined(); | ||
}])); | ||
|
||
it("checks lodash is not on the global scope", function () { | ||
expect(window._).not.toBeDefined(); | ||
}); | ||
|
||
it("checks the lodash auto service was created", | ||
inject(["lodash", function (lodash) { | ||
expect(lodash).toBeDefined(); | ||
}])); | ||
|
||
it("checks humanizeDuration is not on the global scope", function () { | ||
expect(window.humanizeDuration).not.toBeDefined(); | ||
}); | ||
|
||
it("checks the humanizeDuration auto service was created", | ||
inject(["humanize-duration", function (humanizeDuration) { | ||
expect(humanizeDuration).toBeDefined(); | ||
}])); | ||
}); |