Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Added traffic map support #44
Closed
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,6 @@ | ||
| +module.exports = (bot) -> | ||
| + | ||
| + bot.command /^\.promet/i, | ||
| + ".promet Izpiše povezavo do zemljevida prometnih razmer" | ||
| + (r) -> | ||
| + r.reply "Razmere v prometu: http://www.promet.si/portal/map/portal.aspx" |
| @@ -0,0 +1,20 @@ | ||
| +chai = require 'chai' | ||
| +should = chai.should() | ||
| +expect = chai.expect | ||
| + | ||
| +fat = require '../lib/fat_tests' | ||
| + | ||
| +describe 'promet.coffee', -> | ||
| + this.timeout 16000 | ||
| + bot = require("../scripts/promet")(new fat.BotTest()) | ||
| + # generic test | ||
| + it 'should display help', (done)-> | ||
| + bot.help.should.be.an 'array' | ||
| + expect(bot.help.length).to.be.at.least 2 | ||
| + done() | ||
| + | ||
| + it 'test .promet', (done)-> | ||
| + bot.test ".promet", (msg)-> | ||
| + expect(msg).to.be.a('string') | ||
| + expect(msg.length).to.be.at.least 40 | ||
| + done() |