Properly expose TestUtils through top-level package (#3086)

This commit is contained in:
Andrew Imm
2016-11-21 05:53:16 -08:00
committed by Florent Vilmart
parent a28257b2b7
commit d137e27eb9
2 changed files with 2 additions and 6 deletions

View File

@@ -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
}