Skip to content

Commit a5136b8

Browse files
committed
add plugin test
1 parent 0083ff8 commit a5136b8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/test/any/10.00.plugin.spec.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* © 2021, slashlib.org.
3+
*/
4+
const expect = require( "expect.js" );
5+
6+
( async function() {
7+
const constants = require( "./00.00.constants" );
8+
const env = await constants.env;
9+
10+
describe( "10.00.plugin.spec.js - Testing grunt plugin interface 'tasks/tasks.js'", () => {
11+
try {
12+
const plugin = require( "../../tasks/tasks" );
13+
14+
describe( "Testing exports of module 'tasks/tasks'", () => {
15+
it( "'plugin' should exist", () => {
16+
expect( plugin ).not.to.be( undefined );
17+
expect( plugin ).not.to.be( null );
18+
expect( plugin ).to.be.a( "function" );
19+
});
20+
it( "'plugin' should register", () => {
21+
expect(() => { plugin( env.grunt ) }).not.to.throwException();
22+
});
23+
});
24+
} catch( error ) { console.log( error ); }
25+
});
26+
})();

0 commit comments

Comments
 (0)