Skip to content

Commit b211a51

Browse files
committed
Test export default class (commented out for now, as the generated output is too noisy until we support ES2015+ class)
1 parent e95e232 commit b211a51

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/modules.coffee

+15
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,21 @@ test "export default multiline function", ->
226226
};"""
227227
eq toJS(input), output
228228

229+
# Uncomment this test once ES2015+ `class` support is added
230+
231+
# test "export default class", ->
232+
# input = """
233+
# export default class foo extends bar
234+
# baz: ->
235+
# console.log 'hello, world!'"""
236+
# output = """
237+
# export default class foo extends bar {
238+
# baz: function {
239+
# return console.log('hello, world!');
240+
# }
241+
# }"""
242+
# eq toJS(input), output
243+
229244
test "export default named member, within an object", ->
230245
input = "export { foo as default, bar }"
231246
output = """

0 commit comments

Comments
 (0)