Fix PHPUnit problem matchers
This commit is contained in:
parent
f4f8aec1f2
commit
8e5cc09df9
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"regexp": "^\\d+\\)\\s.*$"
|
||||
},
|
||||
{
|
||||
"regexp": "^(.*)$",
|
||||
"regexp": "^(.*Failed\\sasserting\\sthat.*)$",
|
||||
"message": 1
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue