summaryrefslogtreecommitdiff
path: root/jstests/auth/role_management_commands_edge_cases.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/role_management_commands_edge_cases.js')
-rw-r--r--jstests/auth/role_management_commands_edge_cases.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/jstests/auth/role_management_commands_edge_cases.js b/jstests/auth/role_management_commands_edge_cases.js
index 122221ce234..5af309a1a7a 100644
--- a/jstests/auth/role_management_commands_edge_cases.js
+++ b/jstests/auth/role_management_commands_edge_cases.js
@@ -243,10 +243,7 @@ function runTest(conn) {
db.grantPrivilegesToRole("role1", []);
});
- var basicPriv = {
- resource: {db: 'test', collection: ""},
- actions: ['find']
- };
+ var basicPriv = {resource: {db: 'test', collection: ""}, actions: ['find']};
// Invalid first argument
assert.throws(function() {
@@ -302,10 +299,7 @@ function runTest(conn) {
"readWrite", [{resource: {db: 'test', collection: ''}, actions: ['find']}]);
});
- var basicPriv = {
- resource: {db: 'test', collection: ""},
- actions: ['find']
- };
+ var basicPriv = {resource: {db: 'test', collection: ""}, actions: ['find']};
// Invalid first argument
assert.throws(function() {