@wordpress/project-management-automation 1.13.3-next.33ec3857e2.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/package.json +2 -2
- package/lib/test/has-wordpress-profile.js +0 -31
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/project-management-automation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "GitHub Action that implements various automation to assist with managing the Gutenberg GitHub repository.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "d95ccb9366e249133cdb1d7b25c382446b9ee502"
|
|
35
35
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import nock from 'nock';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies
|
|
8
|
-
*/
|
|
9
|
-
import hasWordPressProfile from '../has-wordpress-profile';
|
|
10
|
-
|
|
11
|
-
describe( 'hasWordPressProfile', () => {
|
|
12
|
-
it( 'resolves as false for missing profile', async () => {
|
|
13
|
-
nock( 'https://profiles.wordpress.org' )
|
|
14
|
-
.intercept( '/wp-json/wporg-github/v1/lookup/ghost', 'HEAD' )
|
|
15
|
-
.reply( 404 );
|
|
16
|
-
|
|
17
|
-
const result = await hasWordPressProfile( 'ghost' );
|
|
18
|
-
|
|
19
|
-
expect( result ).toBe( false );
|
|
20
|
-
} );
|
|
21
|
-
|
|
22
|
-
it( 'resolves as true for known profile', async () => {
|
|
23
|
-
nock( 'https://profiles.wordpress.org' )
|
|
24
|
-
.intercept( '/wp-json/wporg-github/v1/lookup/m', 'HEAD' )
|
|
25
|
-
.reply( 200 );
|
|
26
|
-
|
|
27
|
-
const result = await hasWordPressProfile( 'm' );
|
|
28
|
-
|
|
29
|
-
expect( result ).toBe( true );
|
|
30
|
-
} );
|
|
31
|
-
} );
|