0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed emoji tests to use correct input data

This commit is contained in:
Fabien O'Carroll 2019-03-13 16:02:52 +01:00
parent df57b8c944
commit 23fd4702a0

View file

@ -8,8 +8,8 @@ describe('Utils', function () {
describe('filterEmojiCommits', function () {
it('no emoji commits found', function () {
const result = lib.utils.filterEmojiCommits([
'[f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) Version bump to 2.17.1 - Name',
'[f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) Version bump to 2.17.1 - Name'
'1234567890 * [f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) Version bump to 2.17.1 - Name',
'1234567890 * [f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) Version bump to 2.17.1 - Name'
]);
result.length.should.eql(0);
@ -17,8 +17,8 @@ describe('Utils', function () {
it('emoji commits found', function () {
const result = lib.utils.filterEmojiCommits([
'[f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) Version bump to 2.17.1 - Name',
'[f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) 👻 Version bump to 2.17.1 - Name'
'1234567890 * [f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) Version bump to 2.17.1 - Name',
'1234567890 * [f6f35ebcd](https://github.com/TryGhost/Ghost/commit/f6f35ebcd) 👻 Version bump to 2.17.1 - Name'
]);
result.length.should.eql(1);