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

@ -221,8 +221,8 @@ export function main() {
expect(step.keyframes.length).toEqual(4);
expect(step.keyframes[0].offset).toEqual(0);
expect(step.keyframes[1].offset).toMatchPattern(/^0\.33/);
expect(step.keyframes[2].offset).toMatchPattern(/^0\.66/);
expect(step.keyframes[1].offset).toMatch(/^0\.33/);
expect(step.keyframes[2].offset).toMatch(/^0\.66/);
expect(step.keyframes[3].offset).toEqual(1);
});
@ -275,7 +275,7 @@ export function main() {
expect(errors.length).toEqual(1);
var error = errors[0];
expect(error.msg).toMatchPattern(/Not all style\(\) entries contain an offset/);
expect(error.msg).toMatch(/Not all style\(\) entries contain an offset/);
});
it('should use an existing style used earlier in the animation sequence if not defined in the first keyframe',