-
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ac3c98
commit 315275f
Showing
4 changed files
with
46 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
'use strict'; | ||
const assert = require('assert'); | ||
const utils = require('../utils'); | ||
import test from 'ava'; | ||
import m from '../utils'; | ||
|
||
describe('Utils', () => { | ||
describe('convertObjectToList', () => { | ||
it('produces a comma separated string of k=v', () => { | ||
const actual = utils.convertObjectToList({key1: 'value1', key2: 'value2', key99: 'value99'}); | ||
const expected = 'key1=value1,key2=value2,key99=value99'; | ||
assert.strictEqual(actual, expected); | ||
}); | ||
}); | ||
test('convertObjectToList produces a comma separated string of k=v', t => { | ||
t.is( | ||
m.convertObjectToList({key1: 'value1', key2: 'value2', key99: 'value99'}), | ||
'key1=value1,key2=value2,key99=value99' | ||
); | ||
}); |