Skip to content

Commit

Permalink
restored old layer capabilities test
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Feb 27, 2017
1 parent e63f43a commit 5a92949
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/client/actions/__tests__/layers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ describe('Test correctness of the layers actions', () => {
expect(action.type).toBe(UPDATE_SETTINGS);
expect(action.options).toEqual({opacity: 0.5, size: 500});
});
it('get layer capabilities', () => {
it('get layer capabilities', (done) => {
const layer = {
id: "TEST_ID",
name: 'testworkspace:testlayer',
Expand All @@ -180,5 +180,13 @@ describe('Test correctness of the layers actions', () => {
};
const actionCall = getLayerCapabilities(layer);
expect(actionCall).toExist();
actionCall((action)=> {
expect(action).toExist();
expect(action.options).toExist();
expect(action.type === UPDATE_NODE);
if (action.options.capabilities) {
done();
}
});
});
});

0 comments on commit 5a92949

Please sign in to comment.