Questions tagged [jasmine-node]

Integration of Jasmine Spec framework with Node.js

327 questions
2
votes
1 answer

How to use Node.js to compare text and image file contents for equality?

I'm writing a spec using Jasmine Node and I'd like to compare the content of files on disk with the content of files in memory to check that they are equal. Most of the files are text, but one is an image file (PNG). How can this can be done?
Eliot Sykes
  • 9,616
  • 6
  • 50
  • 64
2
votes
1 answer

frisbyjs test is failing because get() is not sending the HTTP headers

I have a frisbyjs test inside another frisbyjs test's afterJSON() that is failing. When I debug the server code, it appears that the x-access-token and x-key HTTP headers are not getting sent. Am I sending them wrong? Surely I'm doing something…
voxoid
  • 1,164
  • 1
  • 14
  • 31
2
votes
1 answer

Problems with $httpBackend.verifyNoOutstandingExpectation()

I have recently started writting unit tests using Karma + Karma-jasmine but I am having problems with the following tests: describe("WEBSERVICE:", function () { var webservice, $httpBackend, authRequestHandler, …
blemaire
  • 33
  • 1
  • 3
2
votes
0 answers

node.js zombie headless browser does not load url

tools Linux ubuntuG5 3.13.0-48-powerpc64-smp node.js v0.10.38 zombie Version 3.1.0 2015-03-15 jasmine-node 1.14.3 sample_zombie_spec.js var Browser, assert, browser, url, title; assert = require('assert'); Browser = require('zombie'); var google…
dmmfll
  • 2,666
  • 2
  • 35
  • 41
2
votes
1 answer

How to generate only one single XML result with jasmine-report and protractor

I have one single protractor project with following dependencies in packages.json: 'protractor' 'grunt-protractor-runner' 'grunt-jasmine-node' 'jasmine-reporters' I have this protractor-config: exports.config = specs: [ …
2
votes
3 answers

Testing Meteor with Velocity at Codeship

I'm trying to configure a CI infrastructure at Codeship. My local meteor --test command works like charm, but I'm getting a weird error at Codeship. Local: I20141208-12:29:42.602(2)? Started I20141208-12:29:42.602(2)? . I20141208-12:29:42.603(2)?…
Michael Samoylov
  • 2,933
  • 3
  • 25
  • 33
2
votes
1 answer

Why do I get no output from jasmine-node?

I'm running nodejs (v0.10.25) on Ubuntu 14.04. I've installed jasmine-node globally using npm as per the instructions here : http://help.exercism.io/getting-started-with-javascript.html. My source file is bob.js and my spec file is called…
user259743
  • 33
  • 8
2
votes
1 answer

Debugging Coffeescript jasmine-node Tests in Webstorm/Intellij

I'm using node-jasmine 2 beta4 and writing in coffeescript. I'm happily running tests in Intellij 13.1 having setup the following Run Configuration Node interpreter: /usr/local/bin/node Working Dir: [Project Directory] Javascript File:…
ARO
  • 239
  • 2
  • 5
2
votes
2 answers

frisbyjs array of objects

My nodejs server responds with an object containing an array of objects like this: { error: false message: "get dispatchers successful" data: [1] 0: { id: 1 first_name: "Brenth Andrew J." last_name: "Miras" contact_number:…
user3631341
  • 515
  • 2
  • 5
  • 16
2
votes
0 answers

Node.JS + Jasmine + Protractor

There are ActionManager.js reads files (libraries) with all possible test functions from folder; WorkflowManager.js reads files with descriptions of needed tests (test workflow). Each of file contains array of action and arguments. TestsRunner.js…
2
votes
0 answers

Testing with sinon fake timers, express js, jasmine-node, and supertest

I've been writing the server side of a fitness webkit application. HTTP calls are sent to the server to start a time based "workout" in the application. I've been using jasmine-node to test and it's been working so far. The only time it doesn't work…
2
votes
3 answers

How to share protractor test case report via email

I am working with Protractor. Have written a few test cases using protractor and can generate HTML reports as well. Now I want to send/share my html reports to the email addresses after running protractor test cases. Is it possible to send test case…
2
votes
0 answers

Testing meteor with FrisbyJS on Travis CI

I'm attempting to use Travis-CI as a testrunner to test my simple meteor app I want it to Install dependencies Run Meteor Run tests then return pass or fail However, I can't get tests to run after meteor is ready to run jasmine node errors to…
Joseph
  • 914
  • 2
  • 14
  • 29
2
votes
2 answers

Is there a way I can change colors of text output in Jasmine?

I am using protractor for my AngularJS E2E testing. I use the DOS command line with a white background and black test. I have the following set up: jasmineNodeOpts: { isVerbose: true, showColors: true, defaultTimeoutInterval:…
user3568783
2
votes
1 answer

jasmine-node with request - testing endpoints that redirect don't follow redirects

Even when adding followAllRedirects only changes response.statusCode from 302 to 200 but the body remains the content of the previous response and all the other properties of the response reflect the old one. Note: I'm doing these in tests using…
ydaniv
  • 1,289
  • 11
  • 18