Questions tagged [mocha-web-velocity]

6 questions
4
votes
1 answer

how to test showing an element after a click?

I'm working with mocha unit test and I need to test if an element is visible after click on a radio button. In other words I have two radio buttons that toggle two elements using javascript and I would like to test this. this is my…
juanp_1982
  • 917
  • 2
  • 16
  • 37
2
votes
0 answers

How to wait for a Blaze template to be renderer before asserting on mocha-web-velocity?

I have some mocha-web-velocity tests that need the template to be rendered. I can use setTimeout: setTimeout(function() { chai.assert.equal($(".text-center").html(), "Something"); done() }, 1500) This works but I would like not to…
Tomas Romero
  • 8,418
  • 11
  • 50
  • 72
1
vote
0 answers

meteor mocha coverage reports

Having trouble finding a supported meteor velocity coverage reporting package. Wondering if any current devs have found something to replace xolvio/meteor-coverage. Much appreciated.
1
vote
0 answers

How do you get templates to be defined in mocha package tests?

My package has a foo.html and a foo.coffee that has Template.foo.helpers ... When I run the mocha package test: meteor test-packages --driver-package velocity:console-reporter mypkg I get: W20151209-04:58:22.249(-5)? (STDERR)…
Loren
  • 13,903
  • 8
  • 48
  • 79
1
vote
1 answer

Catching Mocha timeouts

I'm writing a node.js web service which needs to communicate with another server. So its basically server to server communication. I don't have any previous experience of writing web services so I have very limited knowledge. For unit tests I'm…
ak47Masker
  • 11
  • 1
0
votes
1 answer

How to test a server side function in Meteor without including it in global namespace

In my server side file I have two functions defined for which I want to write test cases which are residing in a file in tests directory. ~PRJ_DIR/server/file1.coffee calcSha1Hash = (params) -> .... logic... anotherFunc = () -> …
pg2286
  • 1,011
  • 12
  • 21