mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Fixed error message checks in members regression test
refs 6f1abc610a
- Additional period `.` was introduced in referenced commit which broke these tests
- The period was added to follow general convention of ending error messages with a perio (in some situations validation message didn't make sense without proper punctuation)
This commit is contained in:
parent
6f1abc610a
commit
af516e130c
1 changed files with 4 additions and 4 deletions
|
@ -477,16 +477,16 @@ describe('Members API', function () {
|
|||
jsonResponse.meta.stats.invalid.count.should.equal(2);
|
||||
|
||||
should.equal(jsonResponse.meta.stats.invalid.errors.length, 4);
|
||||
jsonResponse.meta.stats.invalid.errors[0].message.should.equal('Validation failed for \'name\'');
|
||||
jsonResponse.meta.stats.invalid.errors[0].message.should.equal('Validation failed for \'name\'.');
|
||||
jsonResponse.meta.stats.invalid.errors[0].count.should.equal(1);
|
||||
|
||||
jsonResponse.meta.stats.invalid.errors[1].message.should.equal('Validation failed for \'email\'');
|
||||
jsonResponse.meta.stats.invalid.errors[1].message.should.equal('Validation failed for \'email\'.');
|
||||
jsonResponse.meta.stats.invalid.errors[1].count.should.equal(2);
|
||||
|
||||
jsonResponse.meta.stats.invalid.errors[2].message.should.equal('Validation failed for \'created_at\'');
|
||||
jsonResponse.meta.stats.invalid.errors[2].message.should.equal('Validation failed for \'created_at\'.');
|
||||
jsonResponse.meta.stats.invalid.errors[2].count.should.equal(1);
|
||||
|
||||
jsonResponse.meta.stats.invalid.errors[3].message.should.equal('Validation failed for \'complimentary_plan\'');
|
||||
jsonResponse.meta.stats.invalid.errors[3].message.should.equal('Validation failed for \'complimentary_plan\'.');
|
||||
jsonResponse.meta.stats.invalid.errors[3].count.should.equal(1);
|
||||
|
||||
should.exist(jsonResponse.meta.import_label);
|
||||
|
|
Loading…
Add table
Reference in a new issue