Skip to content

Commit

Permalink
tests for default arrow function export (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter authored Dec 28, 2019
1 parent b5b863d commit c2a4295
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/export-default/arrow-function.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Copyright 2019 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {generator} from '../generator';

generator('export-default', 'arrow-function');
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default a=>console.log(a);
1 change: 1 addition & 0 deletions test/export-default/fixtures/arrow-function.esm.default.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default a=>console.log(a);
1 change: 1 addition & 0 deletions test/export-default/fixtures/arrow-function.esm.es5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function(a){return console.log(a)};
1 change: 1 addition & 0 deletions test/export-default/fixtures/arrow-function.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default a=>console.log(a);

0 comments on commit c2a4295

Please sign in to comment.