You're right that it's failing in the browser - why is that? var chai = require('chai'); expect = chai.expect is 100% identical. is it that Assertion doesn't work in the browser?