From 02e54a95402719037e92e6e25a75bb582dceb565 Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Thu, 5 Sep 2024 13:10:01 +0200 Subject: [PATCH] Fix typo in Meteor 2 test setup --- roles/tests/serverAsync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/tests/serverAsync.js b/roles/tests/serverAsync.js index b6b1645..278cab7 100644 --- a/roles/tests/serverAsync.js +++ b/roles/tests/serverAsync.js @@ -16,7 +16,7 @@ Meteor.publish('client_assignments', async () => { }) // To allow inserting on the client, needed for testing. -if (Meteor.release.split('@')[1][1] === '2') { +if (Meteor.release.split('@')[1][0] === '2') { Meteor.roleAssignment.allow({ insert () { return true }, update () { return true },