Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Jan 11, 2024
1 parent 2380e10 commit f01bce2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions packages/npm/@amazeelabs/codegen-operation-ids/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37b18153e5d5ac538e6f4b371203b73e0b273d9ea2cd26c8b8eeed655c229db6": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
title
}
}",
Expand All @@ -56,12 +56,12 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37b18153e5d5ac538e6f4b371203b73e0b273d9ea2cd26c8b8eeed655c229db6": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
title
}
}",
"Sitemap:58d3e46159d03193c571a8d6d2101a93456902d63a9b9d8c925f7d4cb8c69b0a": "query Sitemap {
loadPage(path: \\"/sitemap\\") {
loadPage(path: "/sitemap") {
title
}
}",
Expand Down Expand Up @@ -89,12 +89,12 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37b18153e5d5ac538e6f4b371203b73e0b273d9ea2cd26c8b8eeed655c229db6": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
title
}
}",
"Sitemap:58d3e46159d03193c571a8d6d2101a93456902d63a9b9d8c925f7d4cb8c69b0a": "query Sitemap {
loadPage(path: \\"/sitemap\\") {
loadPage(path: "/sitemap") {
title
}
}",
Expand All @@ -115,7 +115,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37b18153e5d5ac538e6f4b371203b73e0b273d9ea2cd26c8b8eeed655c229db6": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
title
}
}",
Expand All @@ -136,7 +136,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37d40553a898c4026ba372c8f42af3df9c3451953b65695b823a8e1e7b5fd90d": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
...Page
}
}
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:c620d8758f07daaf2feb128e0c3528520075759288d46dee708d324a6aa44ca7": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
...Page
related {
...Page
Expand Down Expand Up @@ -197,7 +197,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37d40553a898c4026ba372c8f42af3df9c3451953b65695b823a8e1e7b5fd90d": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
...Page
}
}
Expand Down Expand Up @@ -236,7 +236,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37d40553a898c4026ba372c8f42af3df9c3451953b65695b823a8e1e7b5fd90d": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
...Page
}
}
Expand Down Expand Up @@ -275,7 +275,7 @@ describe('mode: map', () => {
expect(JSON.parse(result)).toMatchInlineSnapshot(`
{
"Home:37d40553a898c4026ba372c8f42af3df9c3451953b65695b823a8e1e7b5fd90d": "query Home {
loadPage(path: \\"/\\") {
loadPage(path: "/") {
...Page
}
}
Expand Down Expand Up @@ -351,7 +351,7 @@ describe('mode: ids', () => {
export type OperationVariables<TQueryID extends OperationId<any, any>> =
TQueryID['___query_variables'];
export const HomeQuery = \\"Home:37d40553a898c4026ba372c8f42af3df9c3451953b65695b823a8e1e7b5fd90d\\" as OperationId<HomeQuery,HomeQueryVariables | undefined>;"
export const HomeQuery = "Home:37d40553a898c4026ba372c8f42af3df9c3451953b65695b823a8e1e7b5fd90d" as OperationId<HomeQuery,HomeQueryVariables | undefined>;"
`);
});

Expand Down Expand Up @@ -386,7 +386,7 @@ describe('mode: ids', () => {
export type OperationVariables<TQueryID extends OperationId<any, any>> =
TQueryID['___query_variables'];
export const LoginMutation = \\"Login:10f1c5ac787ce93e9fe860ec9bb4a552967778d3873fbec2ce15fad2164da315\\" as OperationId<LoginMutation,LoginMutationVariables>;"
export const LoginMutation = "Login:10f1c5ac787ce93e9fe860ec9bb4a552967778d3873fbec2ce15fad2164da315" as OperationId<LoginMutation,LoginMutationVariables>;"
`);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('Image', () => {
renderedClassName={'rendered-class'}
/>,
);
expect(output).toMatchInlineSnapshot('"<div style=\\"position:relative;padding-bottom:75%\\"><picture style=\\"position:absolute;top:0;left:0;bottom:0;right:0\\"><img loading=\\"lazy\\" alt=\\"Alt text\\" width=\\"400\\" height=\\"300\\" src=\\"/test.jpg\\" class=\\"always-class rendered-class\\"/></picture></div>"');
expect(output).toMatchInlineSnapshot(`"<div style="position:relative;padding-bottom:75%"><picture style="position:absolute;top:0;left:0;bottom:0;right:0"><img loading="lazy" alt="Alt text" width="400" height="300" src="/test.jpg" class="always-class rendered-class"/></picture></div>"`);
});

it('adds a ready class when the image is loaded', () => {
Expand Down

0 comments on commit f01bce2

Please sign in to comment.