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
// 22: class - creation | |
// To do: make all tests pass, leave the assert lines unchanged! | |
describe('class creation', () => { | |
it('is as simple as `class XXX {}`', function() { | |
class TestClass {} | |
const instance = new TestClass(); | |
assert.equal(typeof instance, 'object'); |
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 const functionToImport = () => { | |
// I had an old reference to a class method that was in this file previously | |
// React never consold an error but I saw the warning `Did not expect componentDidMount timer to start while render timer is still in progress for another instance` | |
// luckily I had few very changes in my working directory, so I didn't spend too much time trying to find the culprit | |
var x = this.something(); | |
return x; | |
} |
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
*BOLD* | |
* List | |
* Of | |
* things |