fix: data column in SQL lab left panel open by default (#13624)

* fix table expand

* Left Panel Expand

* added tests

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
AAfghahi
2021-03-18 16:28:24 -04:00
committed by GitHub
parent 7e6beb5ebf
commit df9352f2b4
6 changed files with 59 additions and 23 deletions

View File

@@ -153,6 +153,7 @@ describe('sqlLabReducer', () => {
it('should add a table', () => {
// Testing that beforeEach actually added the table
expect(newState.tables).toHaveLength(1);
expect(newState.tables[0].expanded).toBe(true);
});
it('should merge the table attributes', () => {
// Merging the extra attribute