Skip to content

Commit

Permalink
Fix JS test
Browse files Browse the repository at this point in the history
  • Loading branch information
delawski committed Oct 13, 2021
1 parent aa946e2 commit 89e8ea6
Showing 1 changed file with 28 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,64 +11,48 @@ describe( 'getSiteIssues', () => {
it( 'returns plugin and theme issues', () => {
const validationResult = [
{
error: {
sources: [
{ type: 'core', name: 'wp-includes' },
{ type: 'plugin', name: 'amp' },
],
},
sources: [
{ type: 'core', name: 'wp-includes' },
{ type: 'plugin', name: 'amp' },
],
},
{
error: {
sources: [
{ type: 'plugin', name: 'gutenberg' },
],
},
sources: [
{ type: 'plugin', name: 'gutenberg' },
],
},
{
error: {
sources: [
{ type: 'core', name: 'wp-includes' },
{ type: 'plugin', name: 'jetpack' },
],
},
sources: [
{ type: 'core', name: 'wp-includes' },
{ type: 'plugin', name: 'jetpack' },
],
},
{
error: {
sources: [
{ type: 'plugin', name: 'jetpack' },
],
},
sources: [
{ type: 'plugin', name: 'jetpack' },
],
},
{
error: {
sources: [
{ type: 'plugin', name: 'foo-bar.php' },
],
},
sources: [
{ type: 'plugin', name: 'foo-bar.php' },
],
},
{
error: {
sources: [
{ type: 'theme', name: 'twentytwenty' },
{ type: 'core', name: 'wp-includes' },
],
},
sources: [
{ type: 'theme', name: 'twentytwenty' },
{ type: 'core', name: 'wp-includes' },
],
},
{
error: {
sources: [
{ type: 'core', name: 'wp-includes' },
],
},
sources: [
{ type: 'core', name: 'wp-includes' },
],
},
{
error: {
sources: [
{ type: 'theme', name: 'twentytwenty' },
{ type: 'core', name: 'wp-includes' },
],
},
sources: [
{ type: 'theme', name: 'twentytwenty' },
{ type: 'core', name: 'wp-includes' },
],
},
];

Expand Down

0 comments on commit 89e8ea6

Please sign in to comment.