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 f40bb38 commit a4ecca6Copy full SHA for a4ecca6
src/index.spec.js
@@ -15,6 +15,7 @@ describe('.diff', () => {
15
['undefined', undefined],
16
['object', { a: 1 }],
17
['array', [1]],
18
+ ['function', () => ({})],
19
]).it('returns empty object when given values of type %s are equal', (type, value) => {
20
expect(diff(value, value)).to.deep.equal({});
21
});
@@ -30,7 +31,9 @@ describe('.diff', () => {
30
31
[null, undefined],
32
[undefined, null],
33
[null, { a: 1 }],
- ['872983', { areaCode: '+44', number: '872983' }]
34
+ ['872983', { areaCode: '+44', number: '872983' }],
35
+ [100, () => ({})],
36
+ [() => ({}), 100],
37
]).it('returns right hand side value when different to left hand side value (%s, %s)', (lhs, rhs) => {
38
expect(diff(lhs, rhs)).to.deep.equal(rhs);
39
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments