-
### This is my controller
```
$scope.signIn = (user) ->
UserService.signIn(user)
```
### This is my UserService
```
angular.module('myApp').factory 'UserService', [
'$http',
($http) ->
{…
-
I'm writing tests for a plugin and they are failing because `moveend` is not being fired on the map after I call `map.setZoom`.
I'm writing a plugin which extends `L.Polyline`. I want to write a tes…
-
... which is odd. Write now the function has to be wrapped inside another function for it to work. Will there be a fix in the near future?
lokeb updated
9 years ago
-
Hi all,
I've been looking for examples on how to write tests in Rendr for things like testing our controllers, models, and collections. So far, from what I've seen on the examples, there isn't too m…
-
Hi folks, running into some issues trying to stub a findAll method on my model for unit testing. Here's the controller code I'm trying to test:
```
// UsersController#index
export function index(req,…
-
The examples provided are quite sparse. It would be nice to include some examples of how to verify that the bot is sending correct replies, etc.
Nevon updated
9 years ago
-
Reposting [this SO question](http://stackoverflow.com/questions/30020033/sinon-spy-on-websocket):
I am trying to spy on WebSocket construction with the following code ([requirebin](http://requirebin.…
-
Hey Alex! Thanks for building this. I was having difficulty deciding between this and [feature-toggle](https://github.com/ericelliott/feature-toggle), but decided on this one because of the ability fo…
-
I have small test case...
I want to replace some methon on global variable which is Sequelize model:
``` js
var models = ... // sequelize models
var Product = models.Product;
```
``` js
describ…
ColCh updated
9 years ago
-
We have several assertions in our core tests of the form
```
expect(foo).to.exist.and.to.have.length(bar)
```
After upgrading to 1.10.0 from 1.9.2, these assertions now throw an error
```
TypeError…