@@ -16,14 +16,14 @@ test('Return if the verifyConditions script returns 0', async t => {
1616 const pluginConfig = { verifyConditionsCmd : 'exit 0' } ;
1717 const context = { stdout : t . context . stdout , stderr : t . context . stderr , logger : t . context . logger , options : { } } ;
1818
19- await t . notThrows ( verifyConditions ( pluginConfig , context ) ) ;
19+ await t . notThrowsAsync ( verifyConditions ( pluginConfig , context ) ) ;
2020} ) ;
2121
2222test ( 'Throw "SemanticReleaseError" if the verifyConditions script does not returns 0' , async t => {
2323 const pluginConfig = { verifyConditionsCmd : 'exit 1' } ;
2424 const context = { stdout : t . context . stdout , stderr : t . context . stderr , logger : t . context . logger , options : { } } ;
2525
26- const error = await t . throws ( verifyConditions ( pluginConfig , context ) ) ;
26+ const error = await t . throwsAsync ( verifyConditions ( pluginConfig , context ) ) ;
2727
2828 t . is ( error . name , 'SemanticReleaseError' ) ;
2929 t . is ( error . code , 'EVERIFYCONDITIONS' ) ;
@@ -33,12 +33,12 @@ test('Use "cmd" if defined and "verifyConditionsCmd" is not', async t => {
3333 const pluginConfig = { cmd : './test/fixtures/echo-args.sh' } ;
3434 const context = { stdout : t . context . stdout , stderr : t . context . stderr , logger : t . context . logger } ;
3535
36- await t . notThrows ( verifyConditions ( pluginConfig , context ) ) ;
36+ await t . notThrowsAsync ( verifyConditions ( pluginConfig , context ) ) ;
3737} ) ;
3838
3939test ( 'Use "verifyConditionsCmd" even if "cmd" is defined' , async t => {
4040 const pluginConfig = { verifyConditionsCmd : './test/fixtures/echo-args.sh' , cmd : 'exit 1' } ;
4141 const context = { stdout : t . context . stdout , stderr : t . context . stderr , logger : t . context . logger } ;
4242
43- await t . notThrows ( verifyConditions ( pluginConfig , context ) ) ;
43+ await t . notThrowsAsync ( verifyConditions ( pluginConfig , context ) ) ;
4444} ) ;
0 commit comments