From 977264f55b2e8756d1ad3816649a8f2149e2cdbf Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 8 Apr 2016 02:06:56 -0700 Subject: [PATCH] Fix split test fails across enviros. --- test/test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test.js b/test/test.js index 27817fc41..5306ddf7a 100644 --- a/test/test.js +++ b/test/test.js @@ -23251,7 +23251,7 @@ thumbsUp = '\ud83d\udc4d'; QUnit.test('should account for astral symbols', function(assert) { - assert.expect(33); + assert.expect(32); var allHearts = _.repeat(hearts, 10), chars = hearts + comboGlyph, @@ -23274,9 +23274,8 @@ assert.strictEqual(_.size(string), 13); assert.deepEqual(_.split(string, ' '), ['A', leafs + ',', comboGlyph + ',', 'and', rocket]); assert.deepEqual(_.split(string, ' ', 3), ['A', leafs + ',', comboGlyph + ',']); - assert.deepEqual(_.split(string, undefined), [string]); - assert.deepEqual(_.split(string, undefined, 0), []); - assert.deepEqual(_.split(string, '', -1), []); + assert.deepEqual(_.split(string, undefined), string.split(undefined)); + assert.deepEqual(_.split(string, undefined, 0), string.split(undefined, 0)); var expected = ['A', ' ', leafs, ',', ' ', comboGlyph, ',', ' ', 'a', 'n', 'd', ' ', rocket];