Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: parse queryparams for magic link as booleans, not strings (#1046)
Browse files Browse the repository at this point in the history
* fix: parse queryparam as boolean, not string

* fix: dont use strictEqual to check currentRoute in test
  • Loading branch information
StephanH90 authored and derrabauke committed Aug 9, 2023
1 parent 6394b79 commit 6076b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/index/reports/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default class IndexReportController extends Controller {
@tracked task;
@tracked duration;
@tracked comment;
@tracked review;
@tracked notBillable;
@tracked review = false;
@tracked notBillable = false;

@service notify;
@service router;
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/index-reports-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ module("Acceptance | index reports", function (hooks) {
await click(`button[data-date="${tomorrow}"]`);
await click("[data-test-report-save]");

assert.strictEqual(currentURL(), `/reports?day=${tomorrow}`);
assert.ok(currentURL().includes(`/reports?day=${tomorrow}`));
assert.dom("[data-test-report-row]").exists({ count: 6 });
});
});

0 comments on commit 6076b87

Please sign in to comment.