Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Jan 10, 2022
1 parent ff89220 commit 8a9fd4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"playground:dev": "cd playground && cross-env DEBUG=Eleventy:Prismic* eleventy --serve",
"prepare": "npm run build",
"release": "npm run build && npm run test && standard-version && git push --follow-tags && npm run build && npm publish",
"release:alpha": "npm run build && npm run test && standard-version --release-as minor --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha",
"release:alpha:dry": "standard-version --release-as minor --prerelease alpha --dry-run",
"release:alpha": "npm run build && npm run test && standard-version --release-as patch --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha",
"release:alpha:dry": "standard-version --release-as patch --prerelease alpha --dry-run",
"release:dry": "standard-version --dry-run",
"test": "npm run lint && npm run unit",
"unit": "nyc --reporter=lcovonly --reporter=text --exclude-after-remap=false ava"
Expand Down
2 changes: 1 addition & 1 deletion test/prismicPreview-handle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ test("resolves preview when query strings are valid", async (t) => {
statusCode: 302,
headers: {
"X-Robots-Tag": "noindex, nofollow",
location: "/preview/foo",
location: "/preview/foo?preview=true",
"set-cookie": `${cookie.preview}=${encodeURIComponent(
JSON.stringify({
[`${options.endpoint}.prismic.io`]: { preview: "foo" },
Expand Down
4 changes: 2 additions & 2 deletions test/prismicPreview-resolve.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test.serial(
{
statusCode: 302,
headers: {
location: "/preview/foo",
location: "/preview/foo?preview=true",
"set-cookie": `${cookie.preview}=${encodeURIComponent(
JSON.stringify({
[`${options.endpoint}.prismic.io`]: { preview: "foo" },
Expand All @@ -63,7 +63,7 @@ test.serial(
{
statusCode: 302,
headers: {
location: "/preview/foo",
location: "/preview/foo?preview=true",
"set-cookie": `${cookie.preview}=${encodeURIComponent(
JSON.stringify({
[`${options.endpoint}.prismic.io`]: { preview: "foo" },
Expand Down

0 comments on commit 8a9fd4c

Please sign in to comment.