Skip to content

Commit 8ac916b

Browse files
committed
removed unwanted tests
1 parent 8d860a0 commit 8ac916b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

packages/bruno-common/src/utils/faker-functions.spec.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ describe("mockDataFunctions Regex Validation", () => {
2121
test("all values should match their expected patterns", () => {
2222
const patterns: Record<string, RegExp> = {
2323
guid: /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/,
24-
timestamp: /^\d{10}$/,
25-
isoTimestamp: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/,
2624
randomUUID: /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/,
2725
randomAlphaNumeric: /^[\w]$/,
2826
randomBoolean: /^(true|false)$/,
@@ -156,23 +154,3 @@ describe("mockDataFunctions Regex Validation", () => {
156154
}
157155
});
158156
});
159-
160-
describe("Time-based tests", () => {
161-
beforeAll(() => {
162-
// Set up fake timers
163-
jest.useFakeTimers();
164-
// Set a specific point in time
165-
jest.setSystemTime(new Date('2024-01-01T00:00:00.000Z'));
166-
});
167-
168-
afterAll(() => {
169-
// Clean up
170-
jest.useRealTimers();
171-
});
172-
173-
test("should handle time-based operations", () => {
174-
// Your time-based tests here
175-
const now = new Date();
176-
expect(now.toISOString()).toBe('2024-01-01T00:00:00.000Z');
177-
});
178-
});

0 commit comments

Comments
 (0)