Skip to content

Instantly share code, notes, and snippets.

@notmarkmiranda
Created July 4, 2016 01:46
Show Gist options
  • Save notmarkmiranda/078e2da0eb19bc2b8d2ad997949508dc to your computer and use it in GitHub Desktop.
Save notmarkmiranda/078e2da0eb19bc2b8d2ad997949508dc to your computer and use it in GitHub Desktop.

Your experience implementing

  • I went with the unit test track, it was pretty straight forward. I really like the teaspoon interface that is built in.

Were you successful?

  • I think so? The test passes all 4 assertions.

Links to commits on Github or copy and pasted code snippits of a test

//=require remove_space

describe('removeSpace', function(){
  it('removes a space from a string', function(){
    var str = 'I have spaces';
    var result = 'Ihavespaces';
    assert.equal(removeSpace(str), result);
  })

  it('removes multiple spaces from a string', function(){
    var str = 'Multiple  spaces';
    var result = 'Multiplespaces';
    assert.equal(removeSpace(str), result)
  })

  it('removes a space from numbers', function(){
    var str = '1 2';
    var result = '12';
    assert.equal(removeSpace(str), result)
  })
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment