Clean up tests and imports

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-05-10 11:25:11 +02:00
parent e04f1ccfbe
commit 0c491a1c5e
5 changed files with 17 additions and 1 deletions
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Readable, Writable } from 'stream';
import { Readable } from 'stream';
import fs from 'fs-extra';
import os from 'os';
import path from 'path';
@@ -296,6 +296,10 @@ describe('AwsS3Publish', () => {
});
});
afterEach(() => {
mockFs.restore();
});
it('should pass expected object path to bucket', async () => {
const {
kind,
@@ -353,6 +353,10 @@ describe('publishing with valid credentials', () => {
});
});
afterEach(() => {
mockFs.restore();
});
it('should pass expected object path to bucket', async () => {
const {
kind,
@@ -295,6 +295,10 @@ describe('GoogleGCSPublish', () => {
});
});
afterEach(() => {
mockFs.restore();
});
it('should pass expected object path to bucket', async () => {
const {
kind,
@@ -301,6 +301,10 @@ describe('OpenStackSwiftPublish', () => {
});
});
afterEach(() => {
mockFs.restore();
});
it('should pass expected object path to bucket', async () => {
const {
kind,