This file contains hidden or 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mocha Tests</title> | |
<link href="https://unpkg.com/[email protected]/mocha.css" rel="stylesheet" /> | |
<script src="https://unpkg.com/[email protected]/mocha.js"></script> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script type="module" src="setup.js"></script> |
This file contains hidden or 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
import './sum.test.js'; | |
mocha.checkLeaks(); | |
mocha.run(); |
This file contains hidden or 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
import 'https://unpkg.com/[email protected]/chai.js'; | |
mocha.setup('bdd'); |
This file contains hidden or 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
import 'https://unpkg.com/[email protected]/index.js'; | |
import 'https://unpkg.com/[email protected]/mocha.js'; | |
mocha.setup('bdd'); | |
import './sum.test.js'; | |
mocha.checkLeaks(); | |
mocha.run(); |
This file contains hidden or 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
import sum from './sum.js'; | |
describe('sum', function () { | |
it('should return sum of arguments', function () { | |
chai.expect(sum(1, 2)).to.equal(3); | |
}); | |
}); |
This file contains hidden or 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
export default function sum(a, b) { | |
return a + b; | |
} |
This file contains hidden or 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
function sum(a, b) { | |
return a + b; | |
} |
This file contains hidden or 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mocha Tests</title> | |
<link href="https://unpkg.com/[email protected]/mocha.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script src="https://unpkg.com/[email protected]/chai.js"></script> |
This file contains hidden or 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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mocha Tests</title> | |
<link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script src="https://cdn.rawgit.com/jquery/jquery/2.1.4/dist/jquery.min.js"></script> |
This file contains hidden or 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
PASS src/isomorphic/classic/__tests__/ReactContextValidator-test.js | |
src/renderers/shared/shared/shouldUpdateReactComponent.js:26 | |
Strict equal of different types: {"key":null,"ref":nu... (object) === false (boolean) | |
Strict equal of different types: [object Object] (object) === false (boolean) | |
src/renderers/shared/shared/shouldUpdateReactComponent.js:27 | |
Strict equal of different types: {"key":null,"ref":nu... (object) === false (boolean) | |
Strict equal of different types: [object Object] (object) === false (boolean) | |
src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:1258 |