Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
Sinon.JS
Conversations
About
Sinon.JS
1–30 of 310
Mark all as read
Report abusive group
0 selected
George Hattrell
,
Raghunandan Ghagharvale
2
1/6/18
Waiting for a sinon stubbed promise to resolve within a function before asserting values on a Sinon spy
+1 On Tuesday, October 24, 2017 at 6:03:08 PM UTC+5:30, George Hattrell wrote: I have a middleware
unread,
Waiting for a sinon stubbed promise to resolve within a function before asserting values on a Sinon spy
+1 On Tuesday, October 24, 2017 at 6:03:08 PM UTC+5:30, George Hattrell wrote: I have a middleware
1/6/18
Carl Erik Kopseng
1/5/18
This group is shutting down and is no longer officially supported
The maintainers have for long not frequrented this mailing list, and it is for all practical intents
unread,
This group is shutting down and is no longer officially supported
The maintainers have for long not frequrented this mailing list, and it is for all practical intents
1/5/18
hale...@gmail.com
12/24/17
mocks and stubs with oncall
Hi there! This is I guess (very) related to https://github.com/sinonjs/sinon/issues/1381. Actually
unread,
mocks and stubs with oncall
Hi there! This is I guess (very) related to https://github.com/sinonjs/sinon/issues/1381. Actually
12/24/17
Samuel O'Donnell
12/9/17
Stubbing/Mocking undefined properties
Hi all, I am hoping someone will be able to help me out with a small issue. I am trying to stub out
unread,
Stubbing/Mocking undefined properties
Hi all, I am hoping someone will be able to help me out with a small issue. I am trying to stub out
12/9/17
Karooga
11/27/17
Testing with EventEmitter with Sinon
Hi, I'm trying to create a test involving EventEmitters and Sinon. Test1 below shows the working
unread,
Testing with EventEmitter with Sinon
Hi, I'm trying to create a test involving EventEmitters and Sinon. Test1 below shows the working
11/27/17
ia...@an10.io
11/13/17
sinon mocking
Hello everyone, I want to mock a method that will be called, when I request a url. Is there a way
unread,
sinon mocking
Hello everyone, I want to mock a method that will be called, when I request a url. Is there a way
11/13/17
Minh Lu
10/24/17
How does Chai-HTTP integrate with Sinon in this situation?
Here is the route I want to test: ``` app.post('/api/user', (req, res) => { dbService.
unread,
How does Chai-HTTP integrate with Sinon in this situation?
Here is the route I want to test: ``` app.post('/api/user', (req, res) => { dbService.
10/24/17
Audrey Becker
,
Tomas Diaz
2
10/12/17
Passing function as response body
Hey, did you manage to handle this? I am trying to use a function as well but it doesn't seem to
unread,
Passing function as response body
Hey, did you manage to handle this? I am trying to use a function as well but it doesn't seem to
10/12/17
Justin Collum
10/5/17
How can I tell if a function is a sinon spy vs. a stub in code?
StackOverflow question if anyone would like to tackle this there: https://stackoverflow.com/questions
unread,
How can I tell if a function is a sinon spy vs. a stub in code?
StackOverflow question if anyone would like to tackle this there: https://stackoverflow.com/questions
10/5/17
Michael Parker
, …
Kishore Indraganti
5
10/4/17
Is there a way to force a stub that is called with `new` to return some fake value?
Did you got workaround for this ? On Tuesday, August 9, 2016 at 6:07:20 PM UTC, Michael Parker wrote:
unread,
Is there a way to force a stub that is called with `new` to return some fake value?
Did you got workaround for this ? On Tuesday, August 9, 2016 at 6:07:20 PM UTC, Michael Parker wrote:
10/4/17
Gustavo Borges
9/29/17
Error on stub sequelize.query.withArgs().
When I try do create this stub: const queryStub = sinon.stub(sequelize, 'query'); and them I
unread,
Error on stub sequelize.query.withArgs().
When I try do create this stub: const queryStub = sinon.stub(sequelize, 'query'); and them I
9/29/17
Slim
9/27/17
How to mock a model using sinon.js?
Hi, I have a user model: const Model = require('objection').Model; class User extends Model {
unread,
How to mock a model using sinon.js?
Hi, I have a user model: const Model = require('objection').Model; class User extends Model {
9/27/17
Marco Antonio Pajares
, …
anurag gautam
3
9/22/17
How mock URL with random query parameters
Hi @marco , try to push dynamic Query inside document.history.pushstate. something like var url =
unread,
How mock URL with random query parameters
Hi @marco , try to push dynamic Query inside document.history.pushstate. something like var url =
9/22/17
anurag gautam
9/22/17
How to stub/ mock browse button[ input type="file" ] handler to upload Image .
Hi Group , I am looking for some help to write test case for upload an image event thru <input
unread,
How to stub/ mock browse button[ input type="file" ] handler to upload Image .
Hi Group , I am looking for some help to write test case for upload an image event thru <input
9/22/17
Swarup Kotikalapudi
9/19/17
Requirejs
Hi, How to use with requirejs, in backbone application. Thanks, Swarup
unread,
Requirejs
Hi, How to use with requirejs, in backbone application. Thanks, Swarup
9/19/17
Meag Doherty
9/5/17
What's your preferred test runner?
I am testing a simple AJAX call (https://github.com/meagdoh/mLab-available-ISPs). New to testing in
unread,
What's your preferred test runner?
I am testing a simple AJAX call (https://github.com/meagdoh/mLab-available-ISPs). New to testing in
9/5/17
Oli
8/28/17
Stubbing a property getter, checking it was called
I'm struggling to put the pieces together to stub a property value, and then check that it was
unread,
Stubbing a property getter, checking it was called
I'm struggling to put the pieces together to stub a property value, and then check that it was
8/28/17
Chang Lung
,
Carl Erik Kopseng
2
8/18/17
How to test inner methods of the high-order functions
Spy on bar.boo and call foo. Then assert bar.boo.calledOnce
unread,
How to test inner methods of the high-order functions
Spy on bar.boo and call foo. Then assert bar.boo.calledOnce
8/18/17
gaurav ahuja
8/17/17
Minifed version of sinon.js
Hi, I need to use the minified version of sinon.js, but i couldn't find it in the releases. From
unread,
Minifed version of sinon.js
Hi, I need to use the minified version of sinon.js, but i couldn't find it in the releases. From
8/17/17
Ashutosh Tripathi
2
7/21/17
Testing function chains using Sinon.JS
For anyone who faces similar issues, I had to export out the Keycloak object from my method and then
unread,
Testing function chains using Sinon.JS
For anyone who faces similar issues, I had to export out the Keycloak object from my method and then
7/21/17
Robert Wlaschin
7/18/17
Request to Add functionality to Allow Running of overloaded method unless alternate return set
Sometimes it's super useful to stub out a function for particular calls. Take the fs.readFileSync
unread,
Request to Add functionality to Allow Running of overloaded method unless alternate return set
Sometimes it's super useful to stub out a function for particular calls. Take the fs.readFileSync
7/18/17
Rich Franzmeier
2
7/18/17
createStubInstance is not recognizing imported Angular typescript class constructor
This turned out to be an issue in how I was using barrels (index.ts files) for exporting. If I
unread,
createStubInstance is not recognizing imported Angular typescript class constructor
This turned out to be an issue in how I was using barrels (index.ts files) for exporting. If I
7/18/17
Joe Marty
7/17/17
fakeServer and testing Network Timeouts
I have an app that is sending a request with a timeout of 20000 (I can see that in the timeout
unread,
fakeServer and testing Network Timeouts
I have an app that is sending a request with a timeout of 20000 (I can see that in the timeout
7/17/17
Андрей Волосович
2
7/14/17
How to delaying specific response from fake backend in Sinon JS?
Hello guys, My solution on the stackoverflow
unread,
How to delaying specific response from fake backend in Sinon JS?
Hello guys, My solution on the stackoverflow
7/14/17
Milrren Mattar
6/21/17
Async problems of everyday
Hey guys! I'm facing a problem with an API who gets a response before the code ends. I'm
unread,
Async problems of everyday
Hey guys! I'm facing a problem with an API who gets a response before the code ends. I'm
6/21/17
Sean Lee
6/20/17
How to verify mocks or stubs
I couldn't find a similar issue with a search, sorry if this is a duplicate post. In some mock
unread,
How to verify mocks or stubs
I couldn't find a similar issue with a search, sorry if this is a duplicate post. In some mock
6/20/17
vivek gs
6/13/17
How to mock the Ldap server request using sinon
Hi, I need to mock the LDAP request for TDD using sinon. Can anyone give me head start where I can go
unread,
How to mock the Ldap server request using sinon
Hi, I need to mock the LDAP request for TDD using sinon. Can anyone give me head start where I can go
6/13/17
Srdjan Dejanovic
6/1/17
How to test touchmove event?
Hi, I have u javascript code: DeviceHelper = function () { return { HandheldDevicesScrollPrevent:
unread,
How to test touchmove event?
Hi, I have u javascript code: DeviceHelper = function () { return { HandheldDevicesScrollPrevent:
6/1/17
Srdjan Dejanovic
,
Morgan Roderick
3
5/30/17
How you restore $?
You helped me a lot! It works! Thank you very much! And sorry for posting the same question on github
unread,
How you restore $?
You helped me a lot! It works! Thank you very much! And sorry for posting the same question on github
5/30/17
Chad W Pry
5/21/17
Sinon and AWS Lambda
Hi everyone, Are there best practices when using Sinon to test AWS Lambda? While I understand the
unread,
Sinon and AWS Lambda
Hi everyone, Are there best practices when using Sinon to test AWS Lambda? While I understand the
5/21/17