mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Replace 'use babel' -> '@babel' in comment directive
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
describe "Babel transpiler support", ->
|
||||
describe 'when a .js file starts with /** use babel */;', ->
|
||||
describe 'when a .js file starts with /** @babel */;', ->
|
||||
it "transpiles it using babel", ->
|
||||
transpiled = require('./fixtures/babel/babel-comment.js')
|
||||
expect(transpiled(3)).toBe 4
|
||||
|
||||
2
spec/fixtures/babel/babel-comment.js
vendored
2
spec/fixtures/babel/babel-comment.js
vendored
@@ -1,3 +1,3 @@
|
||||
/** use babel */
|
||||
/** @babel */
|
||||
|
||||
module.exports = v => v + 1
|
||||
|
||||
Reference in New Issue
Block a user