Commit 6189043b authored by nuwe1's avatar nuwe1

update tests

parent 0ebd6514
...@@ -200,8 +200,15 @@ describe('boardsStore', () => { ...@@ -200,8 +200,15 @@ describe('boardsStore', () => {
it('makes a request to save a list', () => { it('makes a request to save a list', () => {
const expectedResponse = expect.objectContaining({ issues: [createTestIssue()] }); const expectedResponse = expect.objectContaining({ issues: [createTestIssue()] });
const expectedListValue = {
id: listObj.id,
position: listObj.position,
type: listObj.list_type,
label: listObj.label,
};
expect(list.id).toBe(listObj.id); expect(list.id).toBe(listObj.id);
expect(list.position).toBe(listObj.position); expect(list.position).toBe(listObj.position);
expect(list).toMatchObject(expectedListValue);
return expect(boardsStore.saveList(list)).resolves.toEqual(expectedResponse); return expect(boardsStore.saveList(list)).resolves.toEqual(expectedResponse);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment