Skip to content

Commit

Permalink
First pass at a mock
Browse files Browse the repository at this point in the history
  • Loading branch information
argon committed Aug 4, 2016
1 parent 50b2781 commit 59f8889
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mock/client.js
@@ -0,0 +1,13 @@
"use strict";

module.exports = function(dependencies) {

function Client(options) {
}

Client.prototype.write = function mockWrite() {
return {}
}

return Client
};
17 changes: 17 additions & 0 deletions mock/index.js
@@ -0,0 +1,17 @@
"use strict";

const sinon = require("sinon");

const Client = require("./client")();

const Provider = require("../lib/provider")({
Client,
});

const Notification = require("../lib/notification");

module.exports = {
Provider,
Notification,
Client,
};

0 comments on commit 59f8889

Please sign in to comment.