mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Simplify Babel test assertions
To make the tests pass on my grand old Windows 8 VM.
This commit is contained in:
parent
6183184b96
commit
803f572e66
1 changed files with 3 additions and 21 deletions
|
@ -133,27 +133,9 @@ Transpiled3: {{ $transpiled.Permalink }}
|
||||||
b.Assert(logBuf.String(), qt.Contains, "babel: Hugo Environment: production")
|
b.Assert(logBuf.String(), qt.Contains, "babel: Hugo Environment: production")
|
||||||
b.Assert(err, qt.IsNil)
|
b.Assert(err, qt.IsNil)
|
||||||
|
|
||||||
b.AssertFileContent("public/index.html", `
|
b.AssertFileContent("public/index.html", `var Car =`)
|
||||||
var Car = function Car(brand) {
|
b.AssertFileContent("public/index.html", `var Car2 =`)
|
||||||
_classCallCheck(this, Car);
|
b.AssertFileContent("public/js/main2.js", `var Car2 =`)
|
||||||
|
|
||||||
this.carname = brand;
|
|
||||||
};
|
|
||||||
`)
|
|
||||||
b.AssertFileContent("public/index.html", `
|
|
||||||
var Car2 = function Car2(brand) {
|
|
||||||
_classCallCheck(this, Car2);
|
|
||||||
|
|
||||||
this.carname = brand;
|
|
||||||
};
|
|
||||||
`)
|
|
||||||
b.AssertFileContent("public/js/main2.js", `
|
|
||||||
var Car2 = function Car2(brand) {
|
|
||||||
_classCallCheck(this, Car2);
|
|
||||||
|
|
||||||
this.carname = brand;
|
|
||||||
};
|
|
||||||
`)
|
|
||||||
b.AssertFileContent("public/js/main2.js.map", `{"version":3,`)
|
b.AssertFileContent("public/js/main2.js.map", `{"version":3,`)
|
||||||
b.AssertFileContent("public/index.html", `
|
b.AssertFileContent("public/index.html", `
|
||||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL`)
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozL`)
|
||||||
|
|
Loading…
Reference in a new issue