Skip to content

Commit 5900a48

Browse files
committed
Fix test portability
1 parent a2cd4e9 commit 5900a48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/dbObject10.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ describe('209. dbObject10.js', () => {
127127
let dbObj = result.rows[0][0];
128128

129129
let schema = dbconfig.user.toUpperCase();
130-
let expect = `x[${schema}.NODB_PERSON_TYP] { IDNO: 65,\n FIRST_NAME: 'Verna',\n LAST_NAME: 'Mills',\n EMAIL: '[email protected]',\n PHONE: '1-650-555-0125' }`;
130+
let expect = `x[${schema}.NODB_PERSON_TYP] { IDNO: 65, FIRST_NAME: 'Verna', LAST_NAME: 'Mills', EMAIL: '[email protected]', PHONE: '1-650-555-0125' }`;
131+
expect = expect.trim().replace(/[\s\n\r]/g, '');
132+
131133
let actual = 'x' + dbObj;
134+
actual = actual.trim().replace(/[\s\n\r]/g, '');
132135
should.strictEqual(actual, expect);
133136

134137
expect = '{"IDNO":65,"FIRST_NAME":"Verna","LAST_NAME":"Mills","EMAIL":"[email protected]","PHONE":"1-650-555-0125"}';

0 commit comments

Comments
 (0)