revert file change

This commit is contained in:
A.K.M. Adib
2026-03-06 10:28:28 -05:00
parent d879da626d
commit 8cfc314fc0
2 changed files with 7 additions and 13 deletions

View File

@@ -268,8 +268,8 @@ describe('AskUserDialog', () => {
expect(lastFrame()).not.toContain('▼');
}
await waitUntilReady();
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
});
},
);
@@ -569,9 +569,8 @@ describe('AskUserDialog', () => {
await waitFor(async () => {
await waitUntilReady();
expect(lastFrame()).toContain('Review your answers:');
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
writeKey(stdin, '\x1b[D'); // Left arrow back
@@ -615,9 +614,8 @@ describe('AskUserDialog', () => {
await waitFor(async () => {
await waitUntilReady();
expect(lastFrame()).toContain('Review your answers:');
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
});
it('submits with unanswered questions when user confirms on Review', async () => {
@@ -1311,9 +1309,8 @@ describe('AskUserDialog', () => {
await waitFor(async () => {
await waitUntilReady();
expect(lastFrame()).toContain('Type another language...');
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
});
it('uses default placeholder when not provided', async () => {
@@ -1346,9 +1343,8 @@ describe('AskUserDialog', () => {
await waitFor(async () => {
await waitUntilReady();
expect(lastFrame()).toContain('Enter a custom value');
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
});
});
});

View File

@@ -251,9 +251,8 @@ Implement a comprehensive authentication system with multiple providers.
}
await waitFor(() => {
expect(lastFrame()).toContain('Add tests');
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
writeKey(stdin, '\r');
@@ -470,9 +469,8 @@ Implement a comprehensive authentication system with multiple providers.
writeKey(stdin, '\x03'); // Ctrl+C
await waitFor(() => {
expect(lastFrame()).toContain('Type your feedback...');
expect(lastFrame()).toMatchSnapshot();
});
expect(lastFrame()).toMatchSnapshot();
expect(onBubbledQuit).not.toHaveBeenCalled();
// Second Ctrl+C to exit (should bubble)