我正在使用chai-immutablenpm模块进行测试.这是测试:
it("runs the test", () => {
const initialState = Map();
const entries = ["entry"];
const nextState = setEntries(initialState, entries);
expect(nextState).to.equal(fromJS({
entries : ["entry"]
}));
});
Run Code Online (Sandbox Code Playgroud)
这是setEntries功能
export function setEntries(state, entries) {
return state.set("entries", List(entries));
}
Run Code Online (Sandbox Code Playgroud)
这是什么ownerID?如何解决这个问题?
编辑:
我已经从头开始创建并重写了整个文件,但它确实有效.它与上一个文件完全相同.
仍然感兴趣为什么它发生....