Skip to content

Commit

Permalink
Volume adapter test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Nov 23, 2024
1 parent 1023a95 commit 2fea536
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/mirage/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function filesForPath(allocFiles, filterPath) {
export default function () {
this.timing = 0; // delay for each request, automatically set to 0 during testing

this.logging = true; // TODO: window.location.search.includes('mirage-logging=true');
this.logging = window.location.search.includes('mirage-logging=true');

this.namespace = 'v1';
this.trackRequests = Ember.testing;
Expand Down
4 changes: 1 addition & 3 deletions ui/tests/unit/adapters/volume-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ module('Unit | Adapter | Volume', function (hooks) {
await settled();

assert.deepEqual(pretender.handledRequests.mapBy('url'), [
`/v1/volume/${encodeURIComponent(
volumeName
)}?namespace=${volumeNamespace}`,
`/v1/volume/${volumeName}?namespace=${volumeNamespace}`,
]);
});

Expand Down

0 comments on commit 2fea536

Please sign in to comment.