mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
wip: code formatting nits continued
This commit is contained in:
20
test/conforms.spec.js
Normal file
20
test/conforms.spec.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import conforms from '../src/conforms';
|
||||
|
||||
describe('conforms', () => {
|
||||
it('should not change behavior if `source` is modified', () => {
|
||||
const object = { a: 2 };
|
||||
const source = {
|
||||
a: function (value) {
|
||||
return value > 1;
|
||||
},
|
||||
};
|
||||
const par = conforms(source);
|
||||
|
||||
expect(par(object)).toBe(true);
|
||||
|
||||
source.a = function (value) {
|
||||
return value < 2;
|
||||
};
|
||||
expect(par(object)).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user