Questions tagged [jasmine-node]

Integration of Jasmine Spec framework with Node.js

327 questions
0
votes
1 answer

node child process jasmine error

I get the error below when trying to execute jasmine-node test. I am trying to test the following javascript var StringDecoder = require('string_decoder').StringDecoder; var decoder = new StringDecoder('utf8'); Nndb = function(child_process) { …
arunbakt
  • 3
  • 3
0
votes
2 answers

Jasmine-node CLI: Specify file match parameter

I'm trying to execute just a subset of my node jasmine tests. I have a project structure as follows root + server + invite +specs inviteSendSpec.js inviteConfirmSpec.js .. many more spec files + auth …
AyKarsi
  • 9,435
  • 10
  • 54
  • 92
0
votes
1 answer

rtd/mirror_app does not work as expected with Meteor.loginWithGoogle

I've published a Meteor code example similar to githublogin but for Google login process (https://github.com/lc3t35/googlelogin, How to get Google+ profile with Meteor.loginWithGoogle?), it works fine so i decided to add unittests with rtd on this…
0
votes
1 answer

why does jasmine-node throw this error when trying to require a spec file with coffee v1.6.2?

This worked fine with coffee v1.4 and v1.5 but the latest version now makes jasmine node throw a weird error when I run: jasmine-node --coffee --forceexit spec/ /Users/aa/bitium/copernicus/node_modules/coffee-script/lib/coffee-script/helpers.js:211 …
Andrew Arrow
  • 4,248
  • 9
  • 53
  • 80
0
votes
1 answer

testing with jasmine-node

Here's the scenario I am trying to test: A logged in user modifies a 'module' attribute 'desc'. I am not using any database for storing 'module', it is defined in a file that I am requiring. Here's the test code that is not working: first I have a…
az7ar
  • 5,187
  • 2
  • 19
  • 23
0
votes
2 answers

Jasmine coffeescript Clock not effective

I am getting no joy from my jasmine.Clock. My expectation is that the code will mock out the clock object and will trigger setTimeout events upon setting the tick past the specified intervals in the setTimeout, however this does not seem to be…
techie.brandon
  • 1,638
  • 2
  • 18
  • 27
-1
votes
1 answer

how to write unit test for behavior subject

@Input() public openDrawer: BehaviorSubject<{ open: boolean; assetConditionDetails: AssetConditionIdDetails[]; selectedAssets: SelectedAssets[]; }>; public ngOnInit(): void { this.openDrawer.subscribe((result) => { if…
-1
votes
3 answers

How to run SOAP services using jasmine framework using node js

I am using jasmine-node framework for my API automation. I am able to run REST services and able to get the result using node-fetch or http. But in my project there is also requirement for testing SOAP services. How can I do that? Is there any…
johny
  • 51
  • 1
  • 11
-1
votes
2 answers

Cannot read property 'ARROW_DOWN' of undefined in protractor

I am using action sequences in protractor while running my spec i am facing this issue can anyone help why this is happening and how to solve it. Below is my spec code: describe("Actions demo", function(){ it(" Open website ",function(){ …
-1
votes
1 answer

async.each callback inside async.waterfall not triggered

I'm trying to achieve the following: Please consider running this in jasmine test framework that does not support async/await yet async.waterfall calls a function that has async.each to trigger the creation of schemas and tables. The steps in async…
-1
votes
1 answer

TypeError: reporter.beforeLaunch is not a function

I'm trying to implement protractor screenshot reporter for jasmine 2. But, I'm getting the following error on terminal: /usr/local/bin/node lib/cli.js example/conf.js /Users/sadiq/node_modules/protractor/node_modules/q/q.js:155 throw e; ^ TypeError:…
-2
votes
1 answer

If one Expect fails in protractor, will the spec execution continues?

I have two "expect" in my it block and my first it block failed,it still continues the execution and executing the rest of the code in my it block. My expectation is, if first it block failed, execution stops right there and next it block should get…
1 2 3
21
22