Permalink
Browse files

Update coffeescript

  • Loading branch information...
1 parent b862ec4 commit c8985c4841a1ffce61f080e0ea00bdf02b0d8fc6 @dz0ny dz0ny committed Sep 20, 2017
Showing with 1,177 additions and 530 deletions.
  1. +1 −1 Readme.md
  2. +1 −1 lib/fat.coffee
  3. +5 −2 lib/fat_tests.coffee
  4. +1,167 −523 npm-shrinkwrap.json
  5. +2 −2 package.json
  6. +1 −1 test/apt.coffee
View
@@ -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
View
@@ -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
View
@@ -1,8 +1,6 @@
fat = require './fat'
class FakeRedis
- constructor: () ->
-
lrange:()->
return {then: @then}
lpush:()->
@@ -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
Oops, something went wrong.

0 comments on commit c8985c4

Please sign in to comment.