"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const BinaryField_1 = require("./BinaryField");
const _chai_spec_1 = require("./_chai.spec");
describe("BinaryField", () => {
    describe(".fromRawValue", () => {
        it("rejects blank", () => {
            (0, _chai_spec_1.expect)(BinaryField_1.BinaryField.fromRawValue("")).to.eql(undefined);
        });
        it("rejects stringified number", () => {
            (0, _chai_spec_1.expect)(BinaryField_1.BinaryField.fromRawValue("1234")).to.eql(undefined);
        });
        it("rejects EXIF date time", () => {
            (0, _chai_spec_1.expect)(BinaryField_1.BinaryField.fromRawValue("2022:10:21 14:55:32")).to.eql(undefined);
        });
        it("accepts ExifTool's binary data value", async () => {
            const rawValue = "(Binary data 2506078 bytes, use -b option to extract)";
            const actual = BinaryField_1.BinaryField.fromRawValue(rawValue);
            (0, _chai_spec_1.expect)(actual).to.containSubset({
                bytes: 2506078,
                rawValue,
            });
        });
    });
});
//# sourceMappingURL=BinaryField.spec.js.map