Skip to content

Commit

Permalink
Fixed test using ES6 functionalities (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto authored Apr 26, 2017
1 parent c7dc556 commit 44b3e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/utils/__tests__/PluginUtils-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('PluginsUtils', () => {
it('dispatch', () => {
const expr = PluginsUtils.handleExpression(() => ({
dispatch: (action) => action
}), {context1: "test2"}, "{dispatch(() => 'test')}");
}), {context1: "test2"}, "{dispatch((function() { return 'test'; }))}");

expect(expr).toExist();
expect(expr()).toBe("test");
Expand Down

0 comments on commit 44b3e04

Please sign in to comment.