Skip to content

Commit

Permalink
fix: inappropriate modification of animation keywords (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi authored Dec 21, 2018
1 parent eb6f749 commit dfb2f8e
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
132 changes: 132 additions & 0 deletions test/__snapshots__/modules-option.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,137 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `
Array [
Array [
1,
"a {
animation: slide-right 300ms forwards ease-out, fade-in 300ms forwards ease-out;
}
",
"",
],
]
`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = `
Array [
Array [
1,
"a {
animation: slide-right 300ms forwards ease-out, fade-in 300ms forwards ease-out;
}
",
"",
],
]
`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: locals 1`] = `
Object {
"fade-in": "_fade-in",
"slide-right": "_slide-right",
}
`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = `
Array [
Array [
1,
"a {
animation: _slide-right 300ms forwards ease-out, _fade-in 300ms forwards ease-out;
}
",
"",
],
]
`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`true)\`: locals 1`] = `
Object {
"fade-in": "_fade-in",
"slide-right": "_slide-right",
}
`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = `
Array [
Array [
1,
"a {
animation: _slide-right 300ms forwards ease-out, _fade-in 300ms forwards ease-out;
}
",
"",
],
]
`;

exports[`modules case \`animation\`: (export \`all\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`false)\`: module (evaluated) 1`] = `Object {}`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`false)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`global)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`global)\`: locals 1`] = `undefined`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`global)\`: module (evaluated) 1`] = `Object {}`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`global)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: locals 1`] = `undefined`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: module (evaluated) 1`] = `
Object {
"fade-in": "_fade-in",
"slide-right": "_slide-right",
}
`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`local)\`: warnings 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: errors 1`] = `Array []`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: locals 1`] = `undefined`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: module (evaluated) 1`] = `
Object {
"fade-in": "_fade-in",
"slide-right": "_slide-right",
}
`;

exports[`modules case \`animation\`: (export \`only locals\`) (\`modules\` value is \`true)\`: warnings 1`] = `Array []`;

exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`false)\`: errors 1`] = `Array []`;

exports[`modules case \`class-names\`: (export \`all\`) (\`modules\` value is \`false)\`: locals 1`] = `undefined`;
Expand Down
4 changes: 4 additions & 0 deletions test/fixtures/modules/tests-cases/animation/source.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a {
animation: slide-right 300ms forwards ease-out, fade-in 300ms forwards ease-out;

}

0 comments on commit dfb2f8e

Please sign in to comment.