Skip to content

Instantly share code, notes, and snippets.

@corroded
Last active February 26, 2018 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corroded/0b4bb5ecefcdbbadd6fc5d3483d5d72d to your computer and use it in GitHub Desktop.
Save corroded/0b4bb5ecefcdbbadd6fc5d3483d5d72d to your computer and use it in GitHub Desktop.
Sample Rspec to JS
describe('street name is also a street type (Gap Road)', () => {
it('splits the street name/type properly', () => {
const result = streetTypeExtractor('Gap Road')
const expectedObject = {
streetName: 'Gap',
streetType: 'Road',
}
expect(result).to.deep.eq(expectedObject)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment