Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(tests) Tests to fixtures - propertyLiterals #760

Merged
merged 1 commit into from
Dec 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({
[a]: null,
[ಠ_ಠ]: "foo",
["ಠ_ಠ"]: "bar"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({
[a]: null,
[ಠ_ಠ]: "foo",
ಠ_ಠ: "bar"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// FIXME: The test name states that the property names should be transformed,
// but the `12e34` one isn’t transformed in the test

// prettier-ignore
({
"ಠ_ಠ": "bar",
"12e34": "wut",
"\u01FC": "AE"
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// FIXME: The test name states that the property names should be transformed,
// but the `12e34` one isn’t transformed in the test

// prettier-ignore
({
ಠ_ಠ: "bar",
"12e34": "wut",
Ǽ: "AE"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// prettier-ignore
({
"\u2118": "wp",
"𐊧": "foo"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// prettier-ignore
({
"℘": "wp",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jest transforms it while updating fixtures.

"𐊧": "foo"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// FIXME: The test name states that no transformation should take place,
// but the actual test specifies that the quotes should be stripped.
//prettier-ignore
({
"default": null,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a safe transformation?. We can remove the FIXME from here AFAIK.

"import": null
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// FIXME: The test name states that no transformation should take place,
// but the actual test specifies that the quotes should be stripped.
//prettier-ignore
({
default: null,
import: null
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var data = {
"00": 1,
"01": 2
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var data = {
"00": 1,
"01": 2
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// prettier-ignore
var x = { "foo": "bar", "1": "baz", test: null };
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// prettier-ignore
var x = { foo: "bar", 1: "baz", test: null };
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const runner = require("test-runner");
runner(__dirname);

This file was deleted.