Skip to content

Commit

Permalink
remove related test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis committed Jan 20, 2022
1 parent ed9e7a0 commit 9c0b405
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/acceptance/basic-url-template-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,4 @@ module('Acceptance | basic url template', function(hooks) {
assert.equal(findAll('#post-2').length, 1);
assert.equal(findAll('#post-3').length, 0);
});

test('it prevents ember-data from adding query params', async function(assert) {
server.create('post', {
slug: 'my-first-post',
title: 'This is my first post',
});

let queryParams, params;

server.get('/my-posts/:slug', (schema, request) => {
queryParams = request.queryParams;
params = request.params;
return schema.posts.findBy({ slug: request.params.slug });
});

await visit('/posts/my-first-post');

assert.equal(params.slug, 'my-first-post');
assert.ok(!queryParams.foo);
});
});

0 comments on commit 9c0b405

Please sign in to comment.