feat(package): upgrade to ng v2.3+ (#574)

This commit was merged in pull request #574.
This commit is contained in:
Dmitriy Shekhovtsov
2017-01-17 16:38:35 +02:00
committed by GitHub
parent f5b5dc3bd2
commit 3cc6a9946f
75 changed files with 3856 additions and 3264 deletions

21
scripts/matchers.ts Normal file
View File

@@ -0,0 +1,21 @@
// tslint:disable
/**
* @copyright Angular ng-bootstrap team
*/
beforeEach(() => {
jasmine.addMatchers({
toHaveCssClass(/*util, customEqualityTests*/) {
return {compare: buildError(false), negativeCompare: buildError(true)};
function buildError(isNot) {
return function (actual, className) {
const orNot = isNot ? 'not ' : '';
return {
pass: actual.classList.contains(className) === !isNot,
message: `Expected ${actual.outerHTML} ${orNot} to contain the CSS class "${className}"`
};
};
}
}
});
});