mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
tests for baseFileName
helper for files with only coffee-script extensions as the file name.
This commit is contained in:
parent
072df5ecc9
commit
18fec7e202
1 changed files with 4 additions and 2 deletions
|
@ -101,20 +101,22 @@ test "the `last` helper allows one to specify an optional offset", ->
|
|||
test "the `baseFileName` helper returns the file name to write to", ->
|
||||
ext = '.js'
|
||||
sourceToCompiled =
|
||||
'.coffee': '.js'
|
||||
|
||||
'.coffee': ext
|
||||
'a.coffee': 'a' + ext
|
||||
'b.coffee': 'b' + ext
|
||||
'coffee.coffee': 'coffee' + ext
|
||||
|
||||
'.litcoffee': ext
|
||||
'a.litcoffee': 'a' + ext
|
||||
'b.litcoffee': 'b' + ext
|
||||
'coffee.litcoffee': 'coffee' + ext
|
||||
|
||||
'.lit': ext
|
||||
'a.lit': 'a' + ext
|
||||
'b.lit': 'b' + ext
|
||||
'coffee.lit': 'coffee' + ext
|
||||
|
||||
'.coffee.md': ext
|
||||
'a.coffee.md': 'a' + ext
|
||||
'b.coffee.md': 'b' + ext
|
||||
'coffee.coffee.md': 'coffee' + ext
|
||||
|
|
Loading…
Reference in a new issue