From 2a3009c40b94012a9af48b4a312b4f713b8453a7 Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Mon, 10 Oct 2022 13:20:14 -0400 Subject: [PATCH] Update snapshots to Jest format changes --- tests/__snapshots__/index.test.ts.snap | 140 ++++++++++++------------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/tests/__snapshots__/index.test.ts.snap b/tests/__snapshots__/index.test.ts.snap index babf711..743b746 100644 --- a/tests/__snapshots__/index.test.ts.snap +++ b/tests/__snapshots__/index.test.ts.snap @@ -1,105 +1,105 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`create-an-issue checks the value of update_existing 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", "JasonEtco", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "milestone": 1, "title": "Hello!", } `; exports[`create-an-issue creates a new issue 1`] = ` -Object { - "assignees": Array [], +{ + "assignees": [], "body": "Goodbye!", - "labels": Array [], + "labels": [], "title": "Hello!", } `; exports[`create-an-issue creates a new issue 2`] = ` -Array [ - Array [ +[ + [ "Created issue Hello!#1: www", ], ] `; exports[`create-an-issue creates a new issue from a different template 1`] = ` -Object { - "assignees": Array [], +{ + "assignees": [], "body": "Goodbye!", - "labels": Array [], + "labels": [], "title": "Different file", } `; exports[`create-an-issue creates a new issue from a different template 2`] = ` -Array [ - Array [ +[ + [ "Created issue Different file#1: www", ], ] `; exports[`create-an-issue creates a new issue when updating existing issues is enabled but no issues with the same title exist 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", "JasonEtco", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "milestone": 1, "title": "Hello!", } `; exports[`create-an-issue creates a new issue with a milestone passed by input 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", "JasonEtco", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "milestone": 1, "title": "Hello!", } `; exports[`create-an-issue creates a new issue with an assignee passed by input 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "title": "Hello!", } `; exports[`create-an-issue creates a new issue with an assignee passed by input 2`] = ` -Array [ - Array [ +[ + [ "Created issue Hello!#1: www", ], ] `; exports[`create-an-issue creates a new issue with assignees and labels as comma-delimited strings 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "JasonEtco", "matchai", ], "body": "The action create-an-issue is the best action.", - "labels": Array [ + "labels": [ "bug", "enhancement", ], @@ -108,20 +108,20 @@ Object { `; exports[`create-an-issue creates a new issue with assignees and labels as comma-delimited strings 2`] = ` -Array [ - Array [ +[ + [ "Created issue DO EVERYTHING#1: www", ], ] `; exports[`create-an-issue creates a new issue with assignees, labels and a milestone 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "JasonEtco", ], "body": "The action create-an-issue is the best action.", - "labels": Array [ + "labels": [ "bugs", ], "milestone": 2, @@ -130,108 +130,108 @@ Object { `; exports[`create-an-issue creates a new issue with assignees, labels and a milestone 2`] = ` -Array [ - Array [ +[ + [ "Created issue DO EVERYTHING#1: www", ], ] `; exports[`create-an-issue creates a new issue with multiple assignees passed by input 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", "JasonEtco", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "title": "Hello!", } `; exports[`create-an-issue creates a new issue with multiple assignees passed by input 2`] = ` -Array [ - Array [ +[ + [ "Created issue Hello!#1: www", ], ] `; exports[`create-an-issue creates a new issue with some template variables 1`] = ` -Object { - "assignees": Array [], +{ + "assignees": [], "body": "The action create-an-issue is the best action. Environment variable foo is great. ", - "labels": Array [], + "labels": [], "title": "Hello create-an-issue", } `; exports[`create-an-issue creates a new issue with some template variables 2`] = ` -Array [ - Array [ +[ + [ "Created issue Hello create-an-issue#1: www", ], ] `; exports[`create-an-issue creates a new issue with the context.repo template variables 1`] = ` -Object { - "assignees": Array [], +{ + "assignees": [], "body": "Are you looking for results on our gh-pages branch? Just click this link! https://JasonEtco.github.io/waddup/path/to/my/pageindex.html ", - "labels": Array [], + "labels": [], "title": "This Issue has a generalizable GitHub Pages Link", } `; exports[`create-an-issue creates a new issue with the context.repo template variables 2`] = ` -Array [ - Array [ +[ + [ "Created issue This Issue has a generalizable GitHub Pages Link#1: www", ], ] `; exports[`create-an-issue finds, but does not update an existing issue with the same title 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", "JasonEtco", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "milestone": 1, "title": "Hello!", } `; exports[`create-an-issue logs a helpful error if creating an issue throws an error 1`] = ` -Array [ - Array [ +[ + [ "An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!", ], - Array [ + [ [HttpError: Validation error], ], ] `; exports[`create-an-issue logs a helpful error if creating an issue throws an error with more errors 1`] = ` -Array [ - Array [ +[ + [ "An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!", ], - Array [ + [ [HttpError: Validation error: {"foo":true}], ], - Array [ - Array [ - Object { + [ + [ + { "foo": true, }, ], @@ -240,16 +240,16 @@ Array [ `; exports[`create-an-issue logs a helpful error if updating an issue throws an error with more errors 1`] = ` -Array [ - Array [ +[ + [ "An error occurred while updating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!", ], - Array [ + [ [HttpError: Validation error: {"foo":true}], ], - Array [ - Array [ - Object { + [ + [ + { "foo": true, }, ], @@ -258,13 +258,13 @@ Array [ `; exports[`create-an-issue updates an existing open issue with the same title 1`] = ` -Object { - "assignees": Array [ +{ + "assignees": [ "octocat", "JasonEtco", ], "body": "Goodbye!", - "labels": Array [], + "labels": [], "milestone": 1, "title": "Hello!", }