"use strict";

var assert = require("chai").assert;
var transform = require("../");

describe("inline-import", function () {

  describe("with signle quote", function () {
    it("converts inline imports", function () {
      var source = "var foo = {bar: import('baz')};";
      var expect = "var foo = {bar: __inlineImport_0};\nimport __inlineImport_0 from 'baz';\n";
      assert.equal(transform(source), expect);
    });
  });

  describe("with double quote", function () {
    it("converts inline imports", function () {
      var source = 'var foo = {bar: import("baz")};';
      var expect = "var foo = {bar: __inlineImport_0};\nimport __inlineImport_0 from 'baz';\n";
      assert.equal(transform(source), expect);
    });
  });
})

@@ -729,12 +729,159 @@
 );%0A  %7D);
+%0A%0A  it(%22ignores comments%22, function () %7B%0A    var source = '/*var foo = %7Bbar: import(%22baz%22)%7D;*/';%0A    assert.equal(transform(source), source);%0A  %7D);
 %0A%7D)%0A

Add test for comment ignoring