Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Dec 22, 2020
1 parent c206b3a commit 307a8eb
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ describe('get()', () => {
expect(actionType).toMatchInlineSnapshot(`
Object {
"actionConnectorFields": null,
"actionParamsFields": null,
"actionParamsFields": Object {
"$$typeof": Symbol(react.lazy),
"_ctor": [Function],
"_result": null,
"_status": -1,
},
"iconClass": "test",
"id": "my-action-type-snapshot",
"selectMessage": "test",
Expand All @@ -97,15 +102,16 @@ describe('get()', () => {
describe('list()', () => {
test('returns list of action types', () => {
const actionTypeRegistry = new TypeRegistry<ActionTypeModel>();
actionTypeRegistry.register(getTestActionType());
const actionType = getTestActionType();
actionTypeRegistry.register(actionType);
const actionTypes = actionTypeRegistry.list();
expect(actionTypes).toEqual([
{
id: 'my-action-type',
iconClass: 'test',
selectMessage: 'test',
actionConnectorFields: null,
actionParamsFields: null,
actionParamsFields: actionType.actionParamsFields,
validateConnector: actionTypes[0].validateConnector,
validateParams: actionTypes[0].validateParams,
},
Expand Down

0 comments on commit 307a8eb

Please sign in to comment.