My Favorite Unit Test

I use this one to find out if the test environment is set up correctly:

describe('the universe', () => {
  it('should exist', () => {
    expect(true).toBe(true);
  });
});

It’s also a software engineers version of Descartes’ “Cogito ergo sum”: The test passed, therefore the universe must exist.



© 2017. All rights reserved.

Powered by Hydejack v6.6.1