question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Throws on missing check() for Meteor > 1.2.x when using Tinytest

See original GitHub issue

See above; you probably just missed an api.use(‘check’) in your package.js…

I20150930-16:44:06.355(2)? Exception while invoking method 'kadira.debug.getBrowserName' { stack: 'ReferenceError: check is not defined
at [object Object].Meteor.methods.kadira.debug.getBrowserName (packages/kadira_debug/packages/kadira_debug.js:265:1)
at [object Object].methodMap.(anonymous function) (packages/meteorhacks_kadira/packages/meteorhacks_kadira.js:2554:1)
at packages/check/match.js:109:1
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at Object.Match._failIfArgumentsAreNotAllChecked (packages/check/match.js:108:1)
at maybeAuditArgumentChecks (livedata_server.js:1689:18)
at livedata_server.js:708:19
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at livedata_server.js:706:40
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)',
I20150930-16:44:06.355(2)?   source: 'method' }

I20150930-16:44:06.361(2)? Exception from sub kadira.debug.init id xbCqXCFvnYiKh9DjM { stack: 'ReferenceError: check is not defined
at [object Object]._handler (packages/kadira_debug/packages/kadira_debug.js:219:1)
at packages/check/match.js:109:1
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at Object.Match._failIfArgumentsAreNotAllChecked (packages/check/match.js:108:1)
at maybeAuditArgumentChecks (livedata_server.js:1689:18)
at [object Object]._.extend._runHandler (livedata_server.js:1023:17)
at [object Object].subscriptionProto._runHandler (packages/meteorhacks_kadira/packages/meteorhacks_kadira.js:2604:1)
at [object Object]._.extend._startSubscription (livedata_server.js:842:9)
at [object Object]._.extend.protocol_handlers.sub (livedata_server.js:614:12)
at packages/meteorhacks_kadira/packages/meteorhacks_kadira.js:2467:1',
I20150930-16:44:06.361(2)?   source: 'subscription' }

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arunodacommented, Mar 14, 2016

@nirarazi Check whether you are using the latest version. Sometimes, meteor installs a older version.

0reactions
nirarazicommented, Mar 14, 2016

This happens to me with Meteor 1.2.1 and today’s package. Any solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog | Meteor API Docs
TinyTest package without Future PR by matheusccastroo. ... Changes to keep everything compatible with MongoDB Server 5.x and MongoDB ... tinytest@1.2.1.
Read more >
Meteor - API Manual
If the match fails, check throws a Match.Error describing how it failed. If this error gets sent over the wire to the client,...
Read more >
Using tinytest
The purpose of unit testing is to check whether a function gives the output you expect, when it is provided with certain input....
Read more >
meteor/README.md at devel - TinyTest - GitHub
Adding Tinytest to Your Package ... Tinytest is included through configuration in the package.js file using Package.onTest() . // Define test section Package....
Read more >
Verify function throws specified exception - MATLAB
You can use any of the input argument combinations in the previous syntaxes. Input Arguments. expand all. testCase — Test case
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found