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

View File

@ -274,8 +274,7 @@ export function main() {
capturedMessage = e.rawMessage;
}
expect(capturedMessage)
.toMatchPattern(/Unexpected character \[\>\] at column 0:7 in expression/g);
expect(capturedMessage).toMatch(/Unexpected character \[\>\] at column 0:7 in expression/g);
capturedMessage = null;
try {