GOOD SHELL MAS BOY
Server: Apache/2.4.52 (Ubuntu)
System: Linux vmi1836763.contaboserver.net 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User: www-data (33)
PHP: 8.4.10
Disabled: NONE
Upload Files
File: //usr/local/lib/node_modules/firebase-tools/lib/firestore/backupUtils.test.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const backupUtils_1 = require("./backupUtils");
describe("calculateRetention", () => {
    it("should accept minutes", () => {
        (0, chai_1.expect)((0, backupUtils_1.calculateRetention)("5m")).to.eq(300);
    });
    it("should accept hours", () => {
        (0, chai_1.expect)((0, backupUtils_1.calculateRetention)("3h")).to.eq(10800);
    });
    it("should accept days", () => {
        (0, chai_1.expect)((0, backupUtils_1.calculateRetention)("2d")).to.eq(172800);
    });
    it("should accept weeks", () => {
        (0, chai_1.expect)((0, backupUtils_1.calculateRetention)("3w")).to.eq(1814400);
    });
});