Fix PHPUnit problem matchers

This commit is contained in:
Shivam Mathur 2020-01-26 04:59:20 +05:30
parent f4f8aec1f2
commit 8e5cc09df9
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ describe('Matchers', () => {
it('Test Regex', async () => {
const regex1 = /^\d+\)\s.*$/;
const regex2 = /^(.*)$/;
const regex2 = /^(.*Failed\sasserting\sthat.*)$/;
const regex3 = /^\s*$/;
const regex4 = /^(.*):(\d+)$/;
expect(regex1.test('1) Tests\\Test::it_tests')).toBe(true);

View File

@ -7,7 +7,7 @@
"regexp": "^\\d+\\)\\s.*$"
},
{
"regexp": "^(.*)$",
"regexp": "^(.*Failed\\sasserting\\sthat.*)$",
"message": 1
},
{