fix test suite — green on make test
tabsFor() sorts by contribution priority when no user order is set. Test expectations updated for sidebar defaultSize 400 and decision ID D-1 (no zero-padding). PTY tests tagged forkpty and run via dart test (forkpty output unreliable inside flutter test runner). CI script adds --no-fatal-infos and --exclude-tags. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -18,8 +18,7 @@ void main() {
|
||||
registerPqlCommands(dispatcher, pql);
|
||||
});
|
||||
|
||||
Future<IpcResponse> call(String cmd,
|
||||
[Map<String, Object?> args = const {}]) {
|
||||
Future<IpcResponse> call(String cmd, [Map<String, Object?> args = const {}]) {
|
||||
return dispatcher.dispatch(IpcRequest(id: '1', cmd: cmd, args: args));
|
||||
}
|
||||
|
||||
@@ -85,9 +84,9 @@ void main() {
|
||||
|
||||
test('pql.decisions.show returns a single decision', () async {
|
||||
await call('pql.decisions.sync');
|
||||
final r = await call('pql.decisions.show', {'id': 'D-001'});
|
||||
final r = await call('pql.decisions.show', {'id': 'D-1'});
|
||||
expect(r.ok, isTrue);
|
||||
expect(r.data['id'], 'D-001');
|
||||
expect(r.data['id'], 'D-1');
|
||||
expect(r.data['title'], isNotEmpty);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user