03 Nov '13, 1am

Blogged about using JSHint with Jasmine 2

I’ve been using Jasmine 2 on a recent project and I wanted add JSHint as part of our Jasmine build. On a previous project I had used Brandon Keeper’s approach and started there. The core of his solution works with Jasmine 2, with some slight changes. Here is an example: describe('JSHint', function () { var options = {curly: true, white: true, indent: 2}, files = /^\/assets\/application\.js|.*spec\.js$/; function get(path) { path = path + "?" + new Date().getTime(); var xhr; try { xhr = new XMLHttpRequest(); xhr.open("GET", path, false); xhr.send(null); } catch (e) { throw new Error("couldn't fetch " + path + ": " + e); } if (xhr.status 299) { throw new Error("Could not load '" + path + "'."); } return xhr.responseText; } _.each(document.getElementsByTagName('script'), function (element) { var script = element.getAttribute('src'); if (!files.test(script)) { return; } it(scr...

Full article: http://pivotallabs.com/jshint-with-jasmine-2/

Tweets

DRYing up Jasmine Specs with Shared Behavior - ...

pivotallabs.com 07 Nov '13, 5pm

When writing nicely encapsulated code and you have a group of objects that share an interface (pick your favorite patterns...

Kovit’s Carbon Tube Bicycle Has to Be Seen to Be Believed

Kovit’s Carbon Tube Bicycle Has to Be Seen to B...

gas2.org 03 Nov '13, 7pm

What remains is the helically wound composite strands that are woven around straight strands to create isosceles triangles...

OMG SOMEONE PLEASE WATCH SADAKO 2 WITH ME

OMG SOMEONE PLEASE WATCH SADAKO 2 WITH ME

gv.com.sg 03 Nov '13, 2pm

Several years have passed since the "cursed video clip" incidents. There is a mysterious outbreak of multiple deaths, but ...

Recycled Hawtness: Drag Racing Cuba’s Classic Cars (w/ video)

Recycled Hawtness: Drag Racing Cuba’s Classic C...

gas2.org 03 Nov '13, 3pm

Cuba conjures up a number of images in most people’s heads. To some, it’s images of the Mariels coming to Miami in the ear...

Pivotal Labs is sponsoring @Farmhouse Conf 5 - ...

pivotallabs.com 01 Nov '13, 3pm

, the fifth and final show of Hollywood’s best backyard storytelling conference. Come meet our LA Pivots at the after party.

#HumanTrafficking

facebook.com 07 Nov '13, 12pm

Facebook logo Email or Phone Password Keep me logged in Forgot your password?

Rails 4 support with Jasmine 1.3.1

pivotallabs.com 07 Nov '13, 10pm

In case you can’t upgrade to Jasmine 2.0.0 for your project (possibly because it hasn’t been released yet), it’s still pos...