From 2f1eec32b35cdb0c379ece2837edb95fca13e009 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Tue, 19 Apr 2016 13:24:57 +0300 Subject: [PATCH] Create real channel object in tests --- test/util.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/util.js b/test/util.js index a0e00172..58edddd7 100644 --- a/test/util.js +++ b/test/util.js @@ -3,6 +3,7 @@ var util = require("util"); var _ = require("lodash"); var express = require("express"); var Network = require("../src/models/network"); +var Chan = require("../src/models/chan"); function MockClient(opts) { this.user = {nick: "test-user"}; @@ -30,10 +31,9 @@ module.exports = { createNetwork: function() { return new Network({ host: "example.com", - channels: [{ - name: "#test-channel", - messages: [] - }] + channels: [new Chan({ + name: "#test-channel" + })] }); }, createWebserver: function() {