Revert "Rename all test files from JS -> ES6"

This reverts commit 2abe85b8344de1102c1589a9ac9421a8b296f2b5.
This commit is contained in:
Robin Ward
2020-03-25 16:13:43 -04:00
parent a42668ead0
commit 4fa580fbd1
281 changed files with 29 additions and 35 deletions

View File

@ -1,21 +0,0 @@
import Theme from "admin/models/theme";
QUnit.module("model:theme");
QUnit.test("can add an upload correctly", function(assert) {
let theme = Theme.create();
assert.equal(
theme.get("uploads.length"),
0,
"uploads should be an empty array"
);
theme.setField("common", "bob", "", 999, 2);
let fields = theme.get("theme_fields");
assert.equal(fields.length, 1, "expecting 1 theme field");
assert.equal(fields[0].upload_id, 999, "expecting upload id to be set");
assert.equal(fields[0].type_id, 2, "expecting type id to be set");
assert.equal(theme.get("uploads.length"), 1, "expecting an upload");
});