mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
use context view provider to show the filter (#15106)
* use context view provider * handle promise * replace .then with .catch
This commit is contained in:
@@ -19,7 +19,7 @@ suite('TableComponent Tests', () => {
|
||||
['4', '5', '6']
|
||||
];
|
||||
let columns = ['c1', 'c2', 'c3'];
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService());
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService(), undefined);
|
||||
|
||||
let actual = tableComponent.transformData(data, columns);
|
||||
let expected: { [key: string]: string }[] = [
|
||||
@@ -39,7 +39,7 @@ suite('TableComponent Tests', () => {
|
||||
|
||||
test('Table transformData should return empty array given undefined rows', () => {
|
||||
let data = undefined;
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService());
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService(), undefined);
|
||||
let columns = ['c1', 'c2', 'c3'];
|
||||
let actual = tableComponent.transformData(data, columns);
|
||||
let expected: { [key: string]: string }[] = [];
|
||||
@@ -52,7 +52,7 @@ suite('TableComponent Tests', () => {
|
||||
['4', '5', '6']
|
||||
];
|
||||
let columns;
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService());
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService(), undefined);
|
||||
let actual = tableComponent.transformData(data, columns);
|
||||
let expected: { [key: string]: string }[] = [];
|
||||
assert.deepEqual(actual, expected);
|
||||
@@ -63,7 +63,7 @@ suite('TableComponent Tests', () => {
|
||||
['1', '2'],
|
||||
['4', '5']
|
||||
];
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService());
|
||||
const tableComponent = new TableComponent(undefined, undefined, undefined, new NullLogService(), undefined);
|
||||
let columns = ['c1', 'c2', 'c3'];
|
||||
let actual = tableComponent.transformData(data, columns);
|
||||
let expected: { [key: string]: string }[] = [
|
||||
|
||||
Reference in New Issue
Block a user