Skip to content

Commit

Permalink
revert setting up context in actions integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0gr committed Jan 30, 2020
1 parent 714b5b5 commit ccf9119
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/integration/actions-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,22 @@ if (require.has('@ember/test-helpers')) {
module('Integration | actions', function(hooks) {
setupRenderingTest(hooks);

hooks.beforeEach(function(this: any) {
( page as any ).setContext(this);
});

hooks.afterEach(function() {
( page as any ).removeContext();
});

test('Actions work when defined inside collections', async function(assert) {
let template = createCalculatorTemplate();

await render(template);

await page
.numbers
.objectAt(0)!
.objectAt(0)
.click();

assert.equal(page.screen.text, '1');
Expand Down

0 comments on commit ccf9119

Please sign in to comment.