mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] store: change default hash function to better see changes
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
memoize,
|
||||
debounce,
|
||||
findInTree,
|
||||
shallowEqual,
|
||||
patch,
|
||||
unpatch
|
||||
} from "../src/utils";
|
||||
@@ -95,17 +94,6 @@ describe("findInTree", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("shallowEqual", () => {
|
||||
test("simple comparisons", () => {
|
||||
const obj1 = {};
|
||||
expect(shallowEqual(obj1, obj1)).toBe(true);
|
||||
expect(shallowEqual({}, {})).toBe(true);
|
||||
expect(shallowEqual({ a: 1 }, {})).toBe(false);
|
||||
expect(shallowEqual({ a: 1 }, { a: 1 })).toBe(true);
|
||||
expect(shallowEqual({ a: 1 }, ["a"])).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("patch/unpatch", () => {
|
||||
test("can monkey patch a class", () => {
|
||||
class Test {
|
||||
|
||||
Reference in New Issue
Block a user