fix(testing): remove the toMatchPattern matcher (jasmine has toMatch)

BREAKING CHANGE:

Before:

    expect(...).toMatchPattern(pattern);

After:

    expect(...).toMatch(pattern);
This commit is contained in:
Victor Berchet
2016-06-22 14:53:02 -07:00
parent 5face35ae5
commit 6420f75320
6 changed files with 16 additions and 43 deletions
@@ -27,14 +27,6 @@ export function main() {
});
});
describe('toMatchPAttern', () => {
it('should assert that a string matches a given pattern', () => {
expect('matias').toMatchPattern(/ias$/g);
expect('tobias').toMatchPattern(/ias$/g);
expect('joonas').not.toMatchPattern(/ias$/g);
});
});
describe('toEqual for Maps', () => {
it('should detect equality for same reference', () => {
var m1 = MapWrapper.createFromStringMap({'a': 1});