Skip to content

Commit

Permalink
refactor: simplify test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdeansanchez committed Oct 6, 2020
1 parent fb4bea5 commit b111d38
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/test-buildURL.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,11 @@ describe('URL Builder:', function describeSuite() {
});

it('includes an `ixlib` param if the `libraryParam` setting is truthy', function testSpec() {
var params = {
w: 400
},
expectation = '?ixlib=test&w=400',
result;

client.settings.libraryParam = 'test';

result = client._buildParams(params);
var result = client._buildParams({});

assert.equal(expectation, result);
assert(result.match(/ixlib=test/));
});

it('url-encodes parameter keys properly', function testSpec() {
Expand Down

0 comments on commit b111d38

Please sign in to comment.