1
0
Fork 0
mirror of https://github.com/MillironX/docker-names.git synced 2024-11-14 21:43:10 +00:00

Apply Prettier formatting to tests

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-05-09 08:46:32 -05:00
parent d66bab11a7
commit d94d76c840
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -1,21 +1,20 @@
import {generateName, generateNameWithNumber, left, right} from "../index";
import { generateName, generateNameWithNumber, left, right } from "../index";
describe('Docker names', () => {
test('should generate a random name', () => {
describe("Docker names", () => {
test("should generate a random name", () => {
const name = generateName();
const parts = name.split('-');
const parts = name.split("-");
expect(parts).toHaveLength(2);
expect(left).toContain(parts[0]);
expect(right).toContain(parts[1]);
})
});
test("should generate a random name with a number", () => {
const nameWithNumber = generateNameWithNumber();
const parts = nameWithNumber.split('-');
const parts = nameWithNumber.split("-");
expect(parts).toHaveLength(3);
expect(left).toContain(parts[0]);
expect(right).toContain(parts[1]);
expect(parseInt(parts[2])).toBeGreaterThan(0);
})
})
});
});