These are chat archives for CodeHubOrg/discussions

24th
Nov 2016
Tim Handy
@TimHandy
Nov 24 2016 11:47

@rinse0ut Getting somewhere now Dave! used your setup.js file to avoid the 'document' not defined error... will probably ask you some more questions on Tue about that ;-) This is my current package.json run command:

 "test": "./node_modules/mocha/bin/mocha --require ignore-styles --require src/test/setup.js --compilers js:babel-core/register ./src/**/*.test.js --watch",

I can now run tests and get a response out of mocha. Now its just the 'easy' task of learning the syntax for writing some valid tests! Got it running some basic 'is an array' 'returns x values that match' etc that work.

@rinse0ut thanks for your help again!
Dave Thomson
@rinse0ut
Nov 24 2016 11:51
:+1:
No worries, glad to be of help!
Katja Durrani
@katjad
Nov 24 2016 11:55
Next Tuesday is Test Tuesday :)
Dave Thomson
@rinse0ut
Nov 24 2016 11:59
assert(nextTuesday == 'Test Tuesday', "Next Tuesday is Test Tuesday!")
Katja Durrani
@katjad
Nov 24 2016 12:03
😁
Tim Handy
@TimHandy
Nov 24 2016 12:03
I like the sound of test-tues!
assert.deepEqual(testTue(), ['learning', 'ah-ha!', 'now I understand!'])
Katja Durrani
@katjad
Nov 24 2016 12:09
I've got some catching up to do!
Tim Handy
@TimHandy
Nov 24 2016 12:11
that's one of only about three asserts I've learned so far !
so I doubt you've got much to catch up on
Dave Thomson
@rinse0ut
Nov 24 2016 17:39
@katjad Is there anyway you can wangle a free login to https://www.safaribooksonline.com/
Basically access to loads of tech books!
In particular this book:
Katja Durrani
@katjad
Nov 24 2016 18:21
@rinse0ut have you exhausted free subscription? don't know if we can get it for free, but could ask if there's reduced fee for students/study group
we also have this deal where ww could get review copies, only I will haven't published review of first book we got
Dave Thomson
@rinse0ut
Nov 24 2016 18:22
Yes my old Gradwell login has expired. How did Gicela get a copy of Secrets of a Javascipt Ninja?
Katja Durrani
@katjad
Nov 24 2016 18:22
with Manning and O'reilly
Dave Thomson
@rinse0ut
Nov 24 2016 18:22
I’ve got 3/4 throught the Ninja book. Keen to read / review the FP book
Katja Durrani
@katjad
Nov 24 2016 18:25
@gicela got the book as one of the winners of JS day raffle, Manning sponsored two ebooks for that
Dave Thomson
@rinse0ut
Nov 24 2016 18:25
I might sign up to Safari for a month if I can find enought useful books to read. Happy to share the login.
Katja Durrani
@katjad
Nov 24 2016 18:27
oh nice, also let's talk how best share access to books on Tuesday
Dave Thomson
@rinse0ut
Nov 24 2016 18:27
:+1:
Just signed up for a free 10 day trial
username d31tang0
password javascript101
:smile:
Katja Durrani
@katjad
Nov 24 2016 18:33
thanks :)