Skip to content

Commit

Permalink
test: change ixlib to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickfogerty committed Mar 24, 2021
1 parent b4af589 commit 4e0367b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/unit/source-url/source-url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ describe('createResolvers', () => {
describe('ixlib param', () => {
testForEveryFieldSrcAndSrcSet({
name: 'should be included in src by default',
assertion: (url) => expect(url).toMatch('ixlib=gatsby-source-url'),
assertion: (url) => expect(url).toMatch('ixlib=gatsbySourceUrl'),
});
testForEveryFieldSrcAndSrcSet({
name: 'should not exist in src when disableIxlibParam is set',
Expand All @@ -371,7 +371,7 @@ describe('createResolvers', () => {
disableIxlibParam: true,
},
},
assertion: (url) => expect(url).not.toMatch('ixlib=gatsby-source-url'),
assertion: (url) => expect(url).not.toMatch('ixlib=gatsbySourceUrl'),
});
});

Expand Down
4 changes: 2 additions & 2 deletions test/unit/transform-url/transform-url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
const shouldHaveIxLib = async (
fut: () => IGatsbyImageFluidData | IGatsbyImageFixedData,
) => {
test('src and srcset should have ixlib set to gatsby-transform-url-VERSION', async () => {
test('src and srcset should have ixlib set to gatsbyTransformUrl-VERSION', async () => {
const actual = fut();

const expectedIxLibRegex = RegExp(
`ixlib=gatsby-transform-url-${(await readPkg()).version}`,
`ixlib=gatsbyTransformUrl-${(await readPkg()).version}`,
);

expect(actual.src).toMatch(expectedIxLibRegex);
Expand Down

0 comments on commit 4e0367b

Please sign in to comment.