Skip to content

Commit 768a9a9

Browse files
committed
Moved firestore rulst testing as a dev package
1 parent 2525d97 commit 768a9a9

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"dependencies": {
5151
"@ckeditor/ckeditor5-build-classic": "12.4.0",
5252
"@ckeditor/ckeditor5-react": "1.1.3",
53-
"@firebase/testing": "0.16.0",
5453
"@sentry/browser": "5.7.1",
5554
"classnames": "2.2.6",
5655
"firebase": "7.2.0",
@@ -102,10 +101,10 @@
102101
},
103102
"devDependencies": {
104103
"@babel/runtime": "7.6.3",
104+
"@firebase/testing": "0.16.0",
105105
"cross-env": "5.2.0",
106106
"enzyme": "^2.9.1",
107107
"filesystem": "1.0.1",
108-
"firebase-functions-test": "0.1.7",
109108
"firebase-tools": "7.3.2",
110109
"husky": "^3.1.0",
111110
"minx": "github:r-park/minx",

rules/firestore.rules

-6
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ service cloud.firestore {
4343
&& !resource.data.keys().hasAll(['assignee']));
4444
}
4545

46-
// Check that user is sending ONLY listeners as an Array and nothing more
47-
// This allows an auth user to update only the listeners field
48-
function isUserSendingOnlyListeners() {
49-
return request.resource.data.keys().hasAll(['listeners']) && request.resource.size() == resource.size()
50-
}
51-
5246
// Check if project is public
5347
// or if user has an email under the invites
5448
function isUserInvited(anyProject) {

yarn.lock

-13
Original file line numberDiff line numberDiff line change
@@ -1907,11 +1907,6 @@
19071907
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.3.tgz#bdfd69d61e464dcc81b25159c270d75a73c1a636"
19081908
integrity sha512-Il2DtDVRGDcqjDtE+rF8iqg1CArehSK84HZJCT7AMITlyXRBpuPhqGLDQMowraqqu1coEaimg4ZOqggt6L6L+A==
19091909

1910-
"@types/lodash@^4.14.104":
1911-
version "4.14.149"
1912-
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440"
1913-
integrity sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ==
1914-
19151910
"@types/long@*", "@types/long@^4.0.0":
19161911
version "4.0.0"
19171912
resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.0.tgz#719551d2352d301ac8b81db732acb6bdc28dbdef"
@@ -5684,14 +5679,6 @@ find-up@^4.0.0, find-up@^4.1.0:
56845679
locate-path "^5.0.0"
56855680
path-exists "^4.0.0"
56865681

5687-
5688-
version "0.1.7"
5689-
resolved "https://registry.yarnpkg.com/firebase-functions-test/-/firebase-functions-test-0.1.7.tgz#c1f9b82157a1435e38c6707f0943447403ab1703"
5690-
integrity sha512-/zVQhaUZ+M7z25aUaZSIah0MIDZIfnRfQxtHYTE8hgUgODmKdaMX20vh5Gv23hnCPauIHuYb7XFTUOZiWU1udA==
5691-
dependencies:
5692-
"@types/lodash" "^4.14.104"
5693-
lodash "^4.17.5"
5694-
56955682
56965683
version "7.3.2"
56975684
resolved "https://registry.yarnpkg.com/firebase-tools/-/firebase-tools-7.3.2.tgz#c7627af95ae42662e5b84bd07043e312647e6168"

0 commit comments

Comments
 (0)