Merge branch 'bug-crusher-9000' of github.com:Budibase/budibase into table-width-setting
This commit is contained in:
commit
536c9196eb
|
@ -65,6 +65,7 @@ describe("getColumns", () => {
|
||||||
it("returns the selected and unselected fields in the modern format, respecting the original order", ctx => {
|
it("returns the selected and unselected fields in the modern format, respecting the original order", ctx => {
|
||||||
expect(ctx.columns.sortable).toEqual([
|
expect(ctx.columns.sortable).toEqual([
|
||||||
{
|
{
|
||||||
|
_id: "three",
|
||||||
_instanceName: "three",
|
_instanceName: "three",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -73,6 +74,7 @@ describe("getColumns", () => {
|
||||||
label: "three label",
|
label: "three label",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "two",
|
||||||
_instanceName: "two",
|
_instanceName: "two",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -81,6 +83,7 @@ describe("getColumns", () => {
|
||||||
label: "two label",
|
label: "two label",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "one",
|
||||||
_instanceName: "one",
|
_instanceName: "one",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -91,6 +94,7 @@ describe("getColumns", () => {
|
||||||
])
|
])
|
||||||
|
|
||||||
expect(ctx.columns.primary).toEqual({
|
expect(ctx.columns.primary).toEqual({
|
||||||
|
_id: "four",
|
||||||
_instanceName: "four",
|
_instanceName: "four",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -115,6 +119,7 @@ describe("getColumns", () => {
|
||||||
it("returns all columns, with non-hidden columns automatically selected", ctx => {
|
it("returns all columns, with non-hidden columns automatically selected", ctx => {
|
||||||
expect(ctx.columns.sortable).toEqual([
|
expect(ctx.columns.sortable).toEqual([
|
||||||
{
|
{
|
||||||
|
_id: "two",
|
||||||
_instanceName: "two",
|
_instanceName: "two",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -123,6 +128,7 @@ describe("getColumns", () => {
|
||||||
label: "two",
|
label: "two",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "three",
|
||||||
_instanceName: "three",
|
_instanceName: "three",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -131,6 +137,7 @@ describe("getColumns", () => {
|
||||||
label: "three",
|
label: "three",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "one",
|
||||||
_instanceName: "one",
|
_instanceName: "one",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -141,6 +148,7 @@ describe("getColumns", () => {
|
||||||
])
|
])
|
||||||
|
|
||||||
expect(ctx.columns.primary).toEqual({
|
expect(ctx.columns.primary).toEqual({
|
||||||
|
_id: "four",
|
||||||
_instanceName: "four",
|
_instanceName: "four",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -173,6 +181,7 @@ describe("getColumns", () => {
|
||||||
it("returns all columns, including those missing from the initial data", ctx => {
|
it("returns all columns, including those missing from the initial data", ctx => {
|
||||||
expect(ctx.columns.sortable).toEqual([
|
expect(ctx.columns.sortable).toEqual([
|
||||||
{
|
{
|
||||||
|
_id: "three",
|
||||||
_instanceName: "three",
|
_instanceName: "three",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -181,6 +190,7 @@ describe("getColumns", () => {
|
||||||
label: "three label",
|
label: "three label",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "two",
|
||||||
_instanceName: "two",
|
_instanceName: "two",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -189,6 +199,7 @@ describe("getColumns", () => {
|
||||||
label: "two",
|
label: "two",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "one",
|
||||||
_instanceName: "one",
|
_instanceName: "one",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -199,6 +210,7 @@ describe("getColumns", () => {
|
||||||
])
|
])
|
||||||
|
|
||||||
expect(ctx.columns.primary).toEqual({
|
expect(ctx.columns.primary).toEqual({
|
||||||
|
_id: "four",
|
||||||
_instanceName: "four",
|
_instanceName: "four",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -228,6 +240,7 @@ describe("getColumns", () => {
|
||||||
it("returns all valid columns, excluding those that aren't valid for the schema", ctx => {
|
it("returns all valid columns, excluding those that aren't valid for the schema", ctx => {
|
||||||
expect(ctx.columns.sortable).toEqual([
|
expect(ctx.columns.sortable).toEqual([
|
||||||
{
|
{
|
||||||
|
_id: "three",
|
||||||
_instanceName: "three",
|
_instanceName: "three",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -236,6 +249,7 @@ describe("getColumns", () => {
|
||||||
label: "three label",
|
label: "three label",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "two",
|
||||||
_instanceName: "two",
|
_instanceName: "two",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -244,6 +258,7 @@ describe("getColumns", () => {
|
||||||
label: "two",
|
label: "two",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "one",
|
||||||
_instanceName: "one",
|
_instanceName: "one",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -254,6 +269,7 @@ describe("getColumns", () => {
|
||||||
])
|
])
|
||||||
|
|
||||||
expect(ctx.columns.primary).toEqual({
|
expect(ctx.columns.primary).toEqual({
|
||||||
|
_id: "four",
|
||||||
_instanceName: "four",
|
_instanceName: "four",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -318,6 +334,7 @@ describe("getColumns", () => {
|
||||||
beforeEach(ctx => {
|
beforeEach(ctx => {
|
||||||
ctx.updateSortable([
|
ctx.updateSortable([
|
||||||
{
|
{
|
||||||
|
_id: "three",
|
||||||
_instanceName: "three",
|
_instanceName: "three",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -326,6 +343,7 @@ describe("getColumns", () => {
|
||||||
label: "three",
|
label: "three",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "one",
|
||||||
_instanceName: "one",
|
_instanceName: "one",
|
||||||
active: true,
|
active: true,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
@ -334,6 +352,7 @@ describe("getColumns", () => {
|
||||||
label: "one",
|
label: "one",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
_id: "two",
|
||||||
_instanceName: "two",
|
_instanceName: "two",
|
||||||
active: false,
|
active: false,
|
||||||
columnType: "foo",
|
columnType: "foo",
|
||||||
|
|
Loading…
Reference in New Issue