Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Grohs authored and Adam Grohs committed Apr 11, 2019
1 parent 772ce21 commit aff099f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { removeLeadingSlash } from './utils'

it('leading slash is removed', () => {
const string = '/test'

expect(removeLeadingSlash(string)).toEqual('test')
})

0 comments on commit aff099f

Please sign in to comment.