This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
type: "Program", | |
children: [ | |
{ | |
type: "MultiLineComment", | |
children: [ | |
{ | |
type: "MultiLineCommentStartToken", | |
value: "/*", | |
loc: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @jsx React.DOM */ | |
jest.dontMock('../LanguageSelection'); | |
jest.dontMock('../../store'); | |
var React; | |
var TestUtils; | |
var LanguageSelection; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var underscore = require('underscore'); | |
console.log(underscore); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jest.dontMock('../example'); | |
describe('example', function() { | |
it('does stuff', function() { | |
var underscore = require('underscore'); | |
console.log('underscore', underscore.toString()); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jest "/test.js" | |
Using Jest CLI v0.1.5 | |
Found 1 matching tests... | |
PASS __tests__/test.js (0.012s) | |
0/1 tests failed | |
Run time: 1.08s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('This is a test', function() { | |
it('is only a test', function() { | |
var SomeEmitter = require('../SomeEmitter'); | |
var emitter = new SomeEmitter; | |
emitter.on('foo').emit('bar'); | |
expect(emitter.on).toBeCalledWith('foo'); | |
expect(emitter.emit).toBeCalledWith('bar'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('This is a test', function() { | |
it('is only a test', function() { | |
var SomeEmitter = require('../SomeEmitter'); | |
var emitter = new SomeEmitter; | |
emitter.on('foo').emit('bar'); | |
expect(emitter.on).toBeCalledWith('foo'); | |
expect(emitter.emit).toBeCalledWith('bar'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SomeEmitter.js | |
function SomeEmitter() {} | |
SomeEmitter.prototype.on = function() {}; | |
SomeEmitter.prototype.emit = function() {}; | |
module.exports = SomeEmitter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function() { console.log('hai!'); }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// build/modules/Application.js | |
module.exports = function() { console.log('hai!'); }; |
OlderNewer