mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Make some stylistic changes (multiline comment formatting, test description) that had been suggested during code review and that didn't make it into the previous commit. Props costdev. Follows [54913]. See #57197. git-svn-id: https://develop.svn.wordpress.org/trunk@54914 602fd350-edb4-49c9-b593-d223f7449a82
27 lines
629 B
JavaScript
27 lines
629 B
JavaScript
import {
|
|
activatePlugin,
|
|
deactivatePlugin,
|
|
installPlugin,
|
|
uninstallPlugin,
|
|
} from '@wordpress/e2e-test-utils';
|
|
|
|
describe( 'Gutenberg plugin', () => {
|
|
beforeAll( async () => {
|
|
await installPlugin( 'gutenberg' );
|
|
} );
|
|
|
|
afterAll( async () => {
|
|
await uninstallPlugin( 'gutenberg' );
|
|
} );
|
|
|
|
it( 'should activate', async () => {
|
|
await activatePlugin( 'gutenberg' );
|
|
/*
|
|
* If plugin activation fails, it will time out and throw an error,
|
|
* since the activatePlugin helper is looking for a `.deactivate` link
|
|
* which is only there if activation succeeds.
|
|
*/
|
|
await deactivatePlugin( 'gutenberg' );
|
|
} );
|
|
} );
|