Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Created August 4, 2021 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YonatanKra/e43b91e2443da2be12a020a9981c3c6e to your computer and use it in GitHub Desktop.
Save YonatanKra/e43b91e2443da2be12a020a9981c3c6e to your computer and use it in GitHub Desktop.
Snapshot of our simple canvas test
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`draw should draw a house on the canvas using the main ctx 1`] = `
Array [
Object {
"props": Object {
"value": "#808080",
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "fillStyle",
},
Object {
"props": Object {
"fillRule": "nonzero",
"path": Array [],
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "fill",
},
Object {
"props": Object {
"fillRule": "nonzero",
"path": Array [],
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "fill",
},
Object {
"props": Object {
"value": "#ffffff",
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "fillStyle",
},
Object {
"props": Object {
"fillRule": "nonzero",
"path": Array [],
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "fill",
},
Object {
"props": Object {
"value": 2,
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "lineWidth",
},
Object {
"props": Object {
"value": "#ffff00",
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "strokeStyle",
},
Object {
"props": Object {
"path": Array [],
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "stroke",
},
Object {
"props": Object {
"path": Array [],
},
"transform": Array [
1,
0,
0,
1,
0,
0,
],
"type": "stroke",
},
]
`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment