import rule, { ruleName, messages } from "..";

testRule(rule, {
  ruleName,
  config: [true],
  syntax: "scss",

  accept: [
    {
      code: "// comment",
      description: "Double slash comments"
    },
    {
      code: "//* comment",
      description: "Double slash comments with first character as asterix"
    }
  ],
  reject: [
    {
      code: `
      /* comment */
    `,
      description: "One line with optional ending",
      line: 2,
      column: 7,
      message: messages.expected
    },
    {
      code: `
        /* comment line 1
           comment line 2 
        */
    `,
      description: "Multline comment with optional ending on next line",
      line: 2,
      column: 9,
      message: messages.expected
    }
  ]
});

import rule, { ruleName, messages } from "..";

testRule(rule, {
  ruleName,
  config: [true],
  syntax: "scss",

  accept: [
    {
      code: "// comment",
      description: "Double slash comments"
    },
    {
      code: "//* comment",
      description: "Double slash comments with first character as asterix"
    }
  ],
  reject: [
    {
      code: `
      /* comment */
    `,
      description: "One line with optional ending",
      line: 2,
      column: 7,
      message: messages.expected
    },
    {
      code: `
        /* comment line 1
           comment line 2 
        */
    `,
      description: "Multline comment with optional ending on next line",
      line: 2,
      column: 9,
      message: messages.expected
    },
    {
      code: `
      i {
        font-style: italic;
      }

      /* comment line */

      b {
        font-weight: bold;
      }
    `,
      description: "Comment sandwiched between rules",
      line: 6,
      column: 7,
      message: messages.expected
    }
  ]
});

Add failing test for comment-no-loud
Add failing test for comment-no-loud

This rule only seems to work when a comment is the first item in a CSS
file. This test fails to demonstrate the problem.
