Skip to content

Commit

Permalink
chore(sqlite): Remove line break
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasb committed Mar 27, 2023
1 parent b3e8c35 commit cebac15
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 78 deletions.
12 changes: 4 additions & 8 deletions libraries/sqlite-core/src/admin-entity/searchEntities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ describe('adminEntitySearchEntities', () => {
expect(getRunAndQueryCalls(innerAdapter)).toMatchInlineSnapshot(`
[
[
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields
FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 ORDER BY e.id LIMIT ?2",
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 ORDER BY e.id LIMIT ?2",
"none",
26,
],
Expand Down Expand Up @@ -91,8 +90,7 @@ describe('adminEntitySearchEntities', () => {
expect(getRunAndQueryCalls(innerAdapter)).toMatchInlineSnapshot(`
[
[
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields
FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 ORDER BY e.id LIMIT ?2",
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 ORDER BY e.id LIMIT ?2",
"none",
26,
],
Expand Down Expand Up @@ -139,8 +137,7 @@ describe('adminEntitySearchEntities', () => {
expect(getRunAndQueryCalls(innerAdapter)).toMatchInlineSnapshot(`
[
[
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields
FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 AND e.id > ?2 ORDER BY e.id LIMIT ?3",
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 AND e.id > ?2 ORDER BY e.id LIMIT ?3",
"none",
1,
11,
Expand Down Expand Up @@ -189,8 +186,7 @@ describe('adminEntitySearchEntities', () => {
expect(getRunAndQueryCalls(innerAdapter)).toMatchInlineSnapshot(`
[
[
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields
FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 AND e.id < ?2 ORDER BY e.id LIMIT ?3",
"SELECT e.id, e.uuid, e.type, e.name, e.auth_key, e.created_at, e.updated_at, e.updated_seq, e.status, ev.version, ev.fields FROM entities e, entity_versions ev WHERE e.latest_entity_versions_id = ev.id AND e.resolved_auth_key = ?1 AND e.id < ?2 ORDER BY e.id LIMIT ?3",
"none",
1,
11,
Expand Down

0 comments on commit cebac15

Please sign in to comment.