"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const Assert_1 = require("@web-atoms/unit-test/dist/Assert");
const Test_1 = require("@web-atoms/unit-test/dist/Test");
const TestItem_1 = require("@web-atoms/unit-test/dist/TestItem");
const DeclarationParser_1 = require("../DeclarationParser");
class DeclarationTest extends TestItem_1.default {
    parse() {
        let r = DeclarationParser_1.default.parseDependencies(`
        import "a";
        `);
        Assert_1.default.equals("a", r[0]);
        r = DeclarationParser_1.default.parseDependencies(`
        import a from "a";
        `);
        Assert_1.default.equals("a", r[0]);
        r = DeclarationParser_1.default.parseDependencies(`
        import { a } from "a";
        `);
        Assert_1.default.equals("a", r[0]);
    }
    parsePackage() {
        let p = DeclarationParser_1.default.parsePackage("web-atoms-core/dist/Atom");
        Assert_1.default.equals("web-atoms-core", p.name);
        Assert_1.default.equals("dist/Atom", p.path);
        p = DeclarationParser_1.default.parsePackage("@c8private/core/dist/Atom");
        Assert_1.default.equals("@c8private/core", p.name);
        Assert_1.default.equals("dist/Atom", p.path);
    }
}
exports.default = DeclarationTest;
__decorate([
    Test_1.default
], DeclarationTest.prototype, "parse", null);
__decorate([
    Test_1.default
], DeclarationTest.prototype, "parsePackage", null);
//# sourceMappingURL=DeclarationTest.js.map