update tests

pull/1340/head
Rich Harris 7 years ago
parent f0b2cb99f2
commit 5a245b2871

@ -3,6 +3,7 @@ export default {
warnings: [{
filename: "SvelteComponent.html",
code: `css-unused-selector`,
message: "Unused CSS selector",
loc: {
line: 4,

@ -2,6 +2,7 @@ export default {
cascade: false,
warnings: [{
code: `css-unused-selector`,
message: 'Unused CSS selector',
loc: {
line: 8,
@ -9,7 +10,7 @@ export default {
},
pos: 74,
frame: `
6:
6:
7: <style>
8: div > p {
^

@ -6,6 +6,7 @@ export default {
},
warnings: [{
code: `css-unused-selector`,
message: 'Unused CSS selector',
loc: {
column: 1,

@ -2,6 +2,7 @@ export default {
cascade: false,
warnings: [{
code: `css-unused-selector`,
message: 'Unused CSS selector',
loc: {
column: 1,

@ -4,6 +4,7 @@ export default {
warnings: [
{
filename: "SvelteComponent.html",
code: `css-unused-selector`,
message: "Unused CSS selector",
loc: {
line: 4,
@ -21,6 +22,7 @@ export default {
{
filename: "SvelteComponent.html",
code: `css-unused-selector`,
message: "Unused CSS selector",
loc: {
line: 4,

@ -7,6 +7,7 @@ export default {
warnings: [{
filename: "SvelteComponent.html",
code: `css-unused-selector`,
message: "Unused CSS selector",
loc: {
line: 12,

@ -3,6 +3,7 @@ export default {
warnings: [{
filename: "SvelteComponent.html",
code: `css-unused-selector`,
message: "Unused CSS selector",
loc: {
line: 8,
@ -11,7 +12,7 @@ export default {
pos: 60,
frame: `
6: }
7:
7:
8: .bar {
^
9: color: blue;

@ -184,6 +184,7 @@ describe("formats", () => {
);
assert.deepEqual(warnings, [{
code: `options-missing-globals`,
message: `No name was supplied for imported module 'lodash'. Guessing '_', but you should use options.globals`
}]);
});

Loading…
Cancel
Save