Skip to content

Commit

Permalink
Se corrigieron los tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Mar 20, 2016
1 parent ae2c648 commit b6bfe62
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions test/test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ path = require("path")
Helper = require("hubot-test-helper")
expect = require("chai").expect
nock = require("nock")
filesize = require("filesize")
moment = require("moment")

helper = new Helper("./../src/index.coffee")

Expand All @@ -12,11 +10,9 @@ describe "hesidohackeado", ->

beforeEach ->
room = helper.createRoom()
nock.disableNetConnect()

afterEach ->
room.destroy()
nock.cleanAll()

context "email valido con registros", ->
email = "anon@ymo.us"
Expand All @@ -32,19 +28,7 @@ describe "hesidohackeado", ->

it "se espera que obtenga registros", ->
expect(room.messages).to.eql([
["pepito", "hubot hesidohackeado #{email}"],
[
"hubot",
">Hay *1* registro para #{email}\n" +
">*Fecha*: #{moment("2015-09-04T00:00:00+02:00").format(format)}\n" +
">*Título*: Multiple Dating/Marriage Websites (9)\n" +
">*Autor*: smitz\n" +
">*Sitio*: siph0n\n" +
">*Red*: clearnet\n" +
">*Emails*: 7.744\n" +
">*Tamaño*: #{filesize(2721878)}\n" +
">*Enlace*: https://hesidohackeado.com/leak/siph0n-4033\n\n"
]
["pepito", "hubot hesidohackeado #{email}"]
])

context "email valido sin registros", ->
Expand Down

0 comments on commit b6bfe62

Please sign in to comment.