From 0ca22e44e8bece49f7540ff82b994bceb4bce522 Mon Sep 17 00:00:00 2001 From: Andrew Imm Date: Sun, 20 Nov 2016 19:31:53 -0800 Subject: [PATCH] Properly expose TestUtils through top-level package --- src/TestUtils.js | 6 +----- src/index.js | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/TestUtils.js b/src/TestUtils.js index a3befef8b3..59dfe3136b 100644 --- a/src/TestUtils.js +++ b/src/TestUtils.js @@ -1,7 +1,7 @@ import AppCache from './cache'; //Used by tests -function destroyAllDataPermanently() { +export function destroyAllDataPermanently() { if (!process.env.TESTING) { throw 'Only supported in test environment'; } @@ -14,7 +14,3 @@ function destroyAllDataPermanently() { } })); } - -export { - destroyAllDataPermanently -} diff --git a/src/index.js b/src/index.js index ec722db021..6d85bf990d 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import FileSystemAdapter from 'parse-server-fs-adapter' import InMemoryCacheAdapter from './Adapters/Cache/InMemoryCacheAdapter' import NullCacheAdapter from './Adapters/Cache/NullCacheAdapter' import RedisCacheAdapter from './Adapters/Cache/RedisCacheAdapter' -import TestUtils from './TestUtils'; +import * as TestUtils from './TestUtils'; import { useExternal } from './deprecated'; import { getLogger } from './logger';