1 | import { expect } from 'chai';
|
2 | import { mergeClassNames } from '../src';
|
3 |
|
4 | describe('utils.mergeClassNames', function () {
|
5 | it('merges two', function () {
|
6 | const a = 'foo';
|
7 | const b = 'bar';
|
8 | const expected = `${a} ${b}`;
|
9 |
|
10 | expect(mergeClassNames(a, b)).to.equal(expected);
|
11 | });
|
12 |
|
13 | it('merges one', function () {
|
14 | const a = 'foo';
|
15 | const b = '';
|
16 | const expected = `${a}`;
|
17 |
|
18 | expect(mergeClassNames(a, b)).to.equal(expected);
|
19 | });
|
20 |
|
21 | it('merges none', function () {
|
22 | const a = '';
|
23 | const b = '';
|
24 | const expected = '';
|
25 |
|
26 | expect(mergeClassNames(a, b)).to.equal(expected);
|
27 | });
|
28 | });
|