Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Commit

Permalink
test: update compiled test files
Browse files Browse the repository at this point in the history
Run

```sh
$ babel test/fixtures/es6-classes/actual.js > test/fixtures/es6-classes/compiled.js

$ babel test/fixtures/virgin/actual.js > test/fixtures/virgin/compiled.js
```
  • Loading branch information
douglasduteil committed Jul 5, 2018
1 parent 7d6a4a3 commit 3763c5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/fixtures/es6-classes/compiled.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();

Object.defineProperty(exports, "__esModule", {
value: true
});

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

//

var Animal = (function () {
var Animal = function () {
function Animal() {
_classCallCheck(this, Animal);
}
Expand All @@ -33,6 +33,7 @@ var Animal = (function () {
}]);

return Animal;
})();
}();

exports.Animal = Animal;

11 changes: 11 additions & 0 deletions test/fixtures/virgin/compiled.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"use strict";

ONE.foo = function (bar) {
return baz(bar ? 0 : 1);
};

/* istanbul ignore next */
if (true) {
var a = 5;
}

0 comments on commit 3763c5f

Please sign in to comment.