We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30784b5 commit a617315Copy full SHA for a617315
test/unit/specs/utils.js
@@ -40,6 +40,25 @@ describe('UNIT: Utils', function () {
40
41
})
42
43
+ describe('split', function () {
44
+
45
+ it('should split by comma and trim', function () {
46
+ var res = utils.split(' enter, leave ')
47
+ assert.ok(Array.isArray(res))
48
+ assert.strictEqual(res.length, 2)
49
+ assert.strictEqual(res[0], 'enter')
50
+ assert.strictEqual(res[1], 'leave')
51
+ })
52
53
+ it('should work with no commas', function () {
54
+ var res = utils.split(' sefeffse-fsef ')
55
56
+ assert.strictEqual(res.length, 1)
57
+ assert.strictEqual(res[0], 'sefeffse-fsef')
58
59
60
61
62
describe('defProtected', function () {
63
64
it('should define a protected property', function () {
0 commit comments