From 6e198f89a25d3a2b951efe128bf34432fa74df14 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Sun, 10 Apr 2022 19:52:49 +0000 Subject: [PATCH] =?UTF-8?q?Add=20tests=20=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drivers/bitbucket_cloud.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/bitbucket_cloud.test.js b/src/drivers/bitbucket_cloud.test.js index 5941596153..435314636b 100644 --- a/src/drivers/bitbucket_cloud.test.js +++ b/src/drivers/bitbucket_cloud.test.js @@ -29,9 +29,9 @@ describe('Non Enviromental tests', () => { test('Publish', async () => { const path = `${__dirname}/../../assets/logo.png`; - await expect(client.upload({ path })).rejects.toThrow( - 'Bitbucket Cloud does not support upload!' - ); + const { uri } = await client.upload({ path }); + + expect(uri).not.toBeUndefined(); }); test('Runner token', async () => {