Skip to content

Commit

Permalink
Update coffeescript
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Sep 20, 2017
1 parent b862ec4 commit c8985c4
Show file tree
Hide file tree
Showing 6 changed files with 1,177 additions and 530 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Expand Up @@ -16,7 +16,7 @@ Zaženeš:

Tesiraš & razvijaš lokalno:

- ```./node_modules/.bin/mocha -R spec --compilers coffee:coffee-script/register test/vreme.coffee``` testiraš specifično funkcionalnost
- ```./node_modules/.bin/mocha -R spec --compilers coffee:coffeescript/register test/vreme.coffee``` testiraš specifično funkcionalnost

- ```npm test``` če želiš kompleten projekt

Expand Down
2 changes: 1 addition & 1 deletion lib/fat.coffee
Expand Up @@ -36,7 +36,7 @@ class Bot extends events.EventEmitter
sugars = [] # Unused for now

constructor: (settings, nick, channels) ->

super()
# Read package.json
file = fs.readFileSync __dirname + '/../package.json', 'utf-8'
@package = JSON.parse file
Expand Down
7 changes: 5 additions & 2 deletions lib/fat_tests.coffee
@@ -1,8 +1,6 @@
fat = require './fat'

class FakeRedis
constructor: () ->

lrange:()->
return {then: @then}
lpush:()->
Expand All @@ -23,13 +21,18 @@ class FakeRedis

class BotTest extends fat.Bot
constructor: (cb) ->
super()
@help = ["Pomoč:"]
@gcb = cb

prepClient: ->
@client =

say: ->
return

on: ->
return

say: (txt, chan) ->
@gcb txt
Expand Down

0 comments on commit c8985c4

Please sign in to comment.