neotoma/sync-server

View on GitHub
tests/controllers/item/routines/resetAppSpy.js

Summary

Maintainability
A
0 mins
Test Coverage
var app = require('app');
var sinon = require('sinon');

module.exports = function() {
  if (app.emit.restore) {
    app.emit.restore();
  }

  sinon.spy(app, 'emit');
};