mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 12:45:38 +00:00
removed unwanted tests
This commit is contained in:
@@ -21,8 +21,6 @@ describe("mockDataFunctions Regex Validation", () => {
|
||||
test("all values should match their expected patterns", () => {
|
||||
const patterns: Record<string, RegExp> = {
|
||||
guid: /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/,
|
||||
timestamp: /^\d{10}$/,
|
||||
isoTimestamp: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/,
|
||||
randomUUID: /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/,
|
||||
randomAlphaNumeric: /^[\w]$/,
|
||||
randomBoolean: /^(true|false)$/,
|
||||
@@ -156,23 +154,3 @@ describe("mockDataFunctions Regex Validation", () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("Time-based tests", () => {
|
||||
beforeAll(() => {
|
||||
// Set up fake timers
|
||||
jest.useFakeTimers();
|
||||
// Set a specific point in time
|
||||
jest.setSystemTime(new Date('2024-01-01T00:00:00.000Z'));
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
// Clean up
|
||||
jest.useRealTimers();
|
||||
});
|
||||
|
||||
test("should handle time-based operations", () => {
|
||||
// Your time-based tests here
|
||||
const now = new Date();
|
||||
expect(now.toISOString()).toBe('2024-01-01T00:00:00.000Z');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user