Skip to content

Commit

Permalink
Try client side test async
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Oct 14, 2023
1 parent 9b2c312 commit e950687
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
matrix:
meteorRelease:
- '2.8.0'
- '2.13'
- '2.13.3'
# Latest version
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Package.onTest(function (api) {
'meteortesting:mocha@2.1.0'
])

api.versionsFrom('2.3')
api.versionsFrom(['2.3', '2.8.1'])

const both = ['client', 'server']

Expand Down
2 changes: 1 addition & 1 deletion roles/roles_common_async.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Object.assign(Roles, {
)

// if there was no change, parent role might not exist, or role is
// already a subrole; in any case we do not have anything more to do
// already a sub-role; in any case we do not have anything more to do
if (!count) return

await Meteor.roleAssignment.updateAsync(
Expand Down
5 changes: 4 additions & 1 deletion roles/tests/clientAsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
/* global Roles */

import { Meteor } from 'meteor/meteor'
import { assert } from 'chai'
import chai, { assert } from 'chai'
import chaiAsPromised from 'chai-as-promised'

chai.use(chaiAsPromised)

// To ensure that the files are loaded for coverage
import '../roles_common'
Expand Down
6 changes: 3 additions & 3 deletions testapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e950687

Please sign in to comment.