Fix failing Slack tests

This commit is contained in:
soulgalore 2020-08-17 12:05:46 +02:00
parent b4921fb7ff
commit a29057a34d
1 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ describe('slack', () => {
expect(mock.called).to.be.true;
const params = mock.callArgs[0];
expect(params.text).to.equal(
'1 page analysed for Simple test (1 run, Chrome/desktop/unknown)\n*Site summary*\nPage transfer weight: N/A\n\n'
'1 page analysed for Simple test (1 run, Chrome/desktop/unknown)\n*Site summary*\n\n'
);
});
@ -238,7 +238,7 @@ describe('slack', () => {
const params = mock.callArgs[0];
expect(params.text).to.equal(
'1 page analysed for Simple test (1 run, Chrome/desktop/unknown)\n*Site summary* ' +
'(<https://results.sitespeed.io/absolute/path/index.html |result>)\nPage transfer weight: N/A\n\n'
'(<https://results.sitespeed.io/absolute/path/index.html |result>)\n\n'
);
});
@ -259,7 +259,7 @@ describe('slack', () => {
plugin.processMessage({ type: 's3.finished' });
expect(mock.called).to.be.true;
expect(mock.callArgs[0].text).to.equal(
'1 page analysed for S3 configured (1 run, Chrome/desktop/unknown)\n*Site summary*\nPage transfer weight: N/A\n\n'
'1 page analysed for S3 configured (1 run, Chrome/desktop/unknown)\n*Site summary*\n\n'
);
});
@ -284,7 +284,7 @@ describe('slack', () => {
plugin.processMessage({ type: 'gcs.finished' });
expect(mock.called).to.be.true;
expect(mock.callArgs[0].text).to.equal(
'1 page analysed for GCS (1 run, Chrome/desktop/unknown)\n*Site summary*\nPage transfer weight: N/A\n\n'
'1 page analysed for GCS (1 run, Chrome/desktop/unknown)\n*Site summary*\n\n'
);
});
});