Skip to content

Commit

Permalink
Update snapshots to Jest format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco committed Oct 10, 2022
1 parent 411e407 commit 2a3009c
Showing 1 changed file with 70 additions and 70 deletions.
140 changes: 70 additions & 70 deletions tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
@@ -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",
],
Expand All @@ -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,
Expand All @@ -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,
},
],
Expand All @@ -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,
},
],
Expand All @@ -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!",
}
Expand Down

0 comments on commit 2a3009c

Please sign in to comment.