1 | import dataTests from './data-tests';
|
2 |
|
3 | describe('dataTests', () => {
|
4 | it('should join strings', () => {
|
5 | dataTests('foo', 'bar').should.be.equal('foo bar');
|
6 | });
|
7 |
|
8 | it('should ignore nulls', () => {
|
9 | dataTests('foo', null, undefined, '', 'bar').should.be.equal('foo bar');
|
10 | });
|
11 |
|
12 | it('should support map-like arguments', () => {
|
13 | dataTests('foo', {
|
14 | bar: true,
|
15 | notBar: false
|
16 | }).should.be.equal('foo bar');
|
17 | });
|
18 | });
|