[tests][firestore] misc tests
This commit is contained in:
parent
e2be5d678f
commit
2d501bd054
|
@ -89,6 +89,10 @@ version.js
|
|||
.nyc_output
|
||||
ios.coverage.json
|
||||
tests/ios/Fabric.framework/Fabric
|
||||
android/.project
|
||||
android/.classpath
|
||||
android/.settings/org.eclipse.buildship.core.prefs
|
||||
**/android/.project
|
||||
**/android/.classpath
|
||||
**/android/.settings
|
||||
**/android/app/.settings
|
||||
bridge/android/app/.classpath
|
||||
bridge/android/app/.project
|
||||
**/.vscode
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -40,7 +40,7 @@ module.exports = {
|
|||
object: {
|
||||
daz: 123,
|
||||
},
|
||||
timestamp: new Date(2017, 2, 10, 10, 0, 0),
|
||||
timestamp: new bridge.context.window.Date(2017, 2, 10, 10, 0, 0),
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -57,7 +57,7 @@ module.exports = {
|
|||
object: {
|
||||
daz: 123,
|
||||
},
|
||||
timestamp: new Date(2017, 2, 10, 10, 0, 0),
|
||||
timestamp: new bridge.context.window.Date(2017, 2, 10, 10, 0, 0),
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -142,12 +142,16 @@ module.exports = {
|
|||
return firebaseAdmin.firestore().doc(path);
|
||||
},
|
||||
|
||||
resetTestCollectionDoc(path, doc) {
|
||||
async resetTestCollectionDoc(path, doc) {
|
||||
shouldCleanup = true;
|
||||
return firebase
|
||||
const _doc = doc || module.exports.COL_DOC_1();
|
||||
|
||||
await firebase
|
||||
.firestore()
|
||||
.doc(path || module.exports.COL_DOC_1_PATH)
|
||||
.set(doc || module.exports.COL_DOC_1());
|
||||
.set(_doc);
|
||||
|
||||
return _doc;
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -4306,6 +4306,12 @@
|
|||
"write": "0.2.1"
|
||||
}
|
||||
},
|
||||
"flow-bin": {
|
||||
"version": "0.70.0",
|
||||
"resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.70.0.tgz",
|
||||
"integrity": "sha1-CAroOpl/K03bPcJkm/EzNoJSkrU=",
|
||||
"dev": true
|
||||
},
|
||||
"follow-redirects": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.4.1.tgz",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"test-android-cover": "nyc detox test --configuration android.emu.debug",
|
||||
"test-android-cover-reuse": "nyc detox test --configuration android.emu.debug --reuse",
|
||||
"test-ios": "detox test --configuration ios.sim.debug",
|
||||
"test-ios-reuse": "detox test --configuration ios.sim.debug --reuse",
|
||||
"test-ios-reuse": "detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
||||
"test-ios-cover": "nyc detox test --configuration ios.sim.debug",
|
||||
"test-ios-cover-reuse": "nyc detox test --configuration ios.sim.debug --reuse --loglevel warn",
|
||||
"ios:pod:install": "cd ios && rm -rf ReactNativeFirebaseDemo.xcworkspace && pod install && cd .."
|
||||
|
@ -48,6 +48,7 @@
|
|||
"eslint-plugin-import": "^2.11.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.0.3",
|
||||
"eslint-plugin-react": "^7.7.0",
|
||||
"flow-bin": "^0.70.0",
|
||||
"nyc": "^11.7.1"
|
||||
},
|
||||
"nyc": {
|
||||
|
|
Loading…
Reference in New Issue