Use single quotes :P
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
const createSearch = require("../createSearch");
|
||||
const createSearch = require('../createSearch');
|
||||
|
||||
describe("createSearch", () => {
|
||||
it("omits the trailing = for empty string values", () => {
|
||||
expect(createSearch({ a: "a", b: "" })).toEqual("?a=a&b");
|
||||
describe('createSearch', () => {
|
||||
it('omits the trailing = for empty string values', () => {
|
||||
expect(createSearch({ a: 'a', b: '' })).toEqual('?a=a&b');
|
||||
});
|
||||
|
||||
it("sorts keys", () => {
|
||||
expect(createSearch({ b: "b", a: "a", c: "c" })).toEqual("?a=a&b=b&c=c");
|
||||
it('sorts keys', () => {
|
||||
expect(createSearch({ b: 'b', a: 'a', c: 'c' })).toEqual('?a=a&b=b&c=c');
|
||||
});
|
||||
|
||||
it("returns an empty string when there are no params", () => {
|
||||
expect(createSearch({})).toEqual("");
|
||||
it('returns an empty string when there are no params', () => {
|
||||
expect(createSearch({})).toEqual('');
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user