@wordpress/project-management-automation 1.13.1-next.5df0cd52b7.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.
@@ -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
- } );