Skip to content

Commit fe89623

Browse files
juanluispazlorefnon
authored andcommitted
Fix outdated test snapshots
1 parent c987c18 commit fe89623

9 files changed

+35
-8
lines changed

test/__snapshots__/Generator/allows-customizing-naming.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class TCPBooksTCS extends Table<DBConnection, 'TCPBooksTCS'> {
7373
releasedAt = this.optionalColumn('released_at', 'localDate');
7474
timeToRead = this.optionalColumn('time_to_read', 'int');
7575
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
76+
/**
77+
* Sample weight as provided by distributor
78+
*/
7679
weightGrams = this.optionalColumn('weight_grams', 'double');
7780

7881
constructor() {
@@ -120,7 +123,7 @@ import {
120123

121124
/**
122125
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
123-
*/
126+
*/
124127
class TCPChaptersTCS extends Table<DBConnection, 'TCPChaptersTCS'> {
125128
id = this.autogeneratedPrimaryKey('id', 'int');
126129
name = this.column('name', 'string');

test/__snapshots__/Generator/allows-exporting-crud-repositories.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ export class BooksTable extends Table<DBConnection, 'BooksTable'> {
191191
releasedAt = this.optionalColumn('released_at', 'localDate');
192192
timeToRead = this.optionalColumn('time_to_read', 'int');
193193
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
194+
/**
195+
* Sample weight as provided by distributor
196+
*/
194197
weightGrams = this.optionalColumn('weight_grams', 'double');
195198

196199
constructor() {
@@ -332,7 +335,7 @@ import {
332335

333336
/**
334337
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
335-
*/
338+
*/
336339
export class ChaptersTable extends Table<DBConnection, 'ChaptersTable'> {
337340
id = this.autogeneratedPrimaryKey('id', 'int');
338341
name = this.column('name', 'string');

test/__snapshots__/Generator/allows-exporting-instances.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ class BooksTable extends Table<DBConnection, 'BooksTable'> {
7676
releasedAt = this.optionalColumn('released_at', 'localDate');
7777
timeToRead = this.optionalColumn('time_to_read', 'int');
7878
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
79+
/**
80+
* Sample weight as provided by distributor
81+
*/
7982
weightGrams = this.optionalColumn('weight_grams', 'double');
8083

8184
constructor() {
@@ -105,7 +108,7 @@ import {
105108

106109
/**
107110
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
108-
*/
111+
*/
109112
class ChaptersTable extends Table<DBConnection, 'ChaptersTable'> {
110113
id = this.autogeneratedPrimaryKey('id', 'int');
111114
name = this.column('name', 'string');

test/__snapshots__/Generator/allows-non-relative-and-default-import-paths-with-db-type-name.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ class BooksTable extends Table<DBConnection, 'BooksTable'> {
7272
releasedAt = this.optionalColumn('released_at', 'localDate');
7373
timeToRead = this.optionalColumn('time_to_read', 'int');
7474
genre = this.optionalColumn<Genre, 'genre'>('genre', 'enum', 'genre');
75+
/**
76+
* Sample weight as provided by distributor
77+
*/
7578
weightGrams = this.optionalColumn('weight_grams', 'double');
7679

7780
constructor() {
@@ -99,7 +102,7 @@ import ChapterMetadata from "some-lib/ChapterMetadata";
99102

100103
/**
101104
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
102-
*/
105+
*/
103106
class ChaptersTable extends Table<DBConnection, 'ChaptersTable'> {
104107
id = this.autogeneratedPrimaryKey('id', 'int');
105108
name = this.column('name', 'string');

test/__snapshots__/Generator/allows-non-relative-and-default-import-paths.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ class BooksTable extends Table<DBConnection, 'BooksTable'> {
7272
releasedAt = this.optionalColumn('released_at', 'localDate');
7373
timeToRead = this.optionalColumn('time_to_read', 'int');
7474
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
75+
/**
76+
* Sample weight as provided by distributor
77+
*/
7578
weightGrams = this.optionalColumn('weight_grams', 'double');
7679

7780
constructor() {
@@ -99,7 +102,7 @@ import ChapterMetadata from "some-lib/ChapterMetadata";
99102

100103
/**
101104
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
102-
*/
105+
*/
103106
class ChaptersTable extends Table<DBConnection, 'ChaptersTable'> {
104107
id = this.autogeneratedPrimaryKey('id', 'int');
105108
name = this.column('name', 'string');

test/__snapshots__/Generator/allows-omitting-specific-tables-and-fields.expected.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export class BooksTable extends Table<DBConnection, 'PublicBooksTable'> {
4242
releasedAt = this.optionalColumn('released_at', 'localDate');
4343
readTime = this.optionalColumn('time_to_read', 'int');
4444
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
45+
/**
46+
* Sample weight as provided by distributor
47+
*/
4548
weightGrams = this.optionalColumn('weight_grams', 'double');
4649

4750
constructor() {

test/__snapshots__/Generator/generates-code-from-schema-with-useQualifiedTablePrefix-false.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export class BooksTable extends Table<DBConnection, 'BooksTable'> {
7474
releasedAt = this.optionalColumn('released_at', 'localDate');
7575
timeToRead = this.optionalColumn('time_to_read', 'int');
7676
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
77+
/**
78+
* Sample weight as provided by distributor
79+
*/
7780
weightGrams = this.optionalColumn('weight_grams', 'double');
7881

7982
constructor() {
@@ -102,7 +105,7 @@ import {
102105

103106
/**
104107
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
105-
*/
108+
*/
106109
export class ChaptersTable extends Table<DBConnection, 'ChaptersTable'> {
107110
id = this.autogeneratedPrimaryKey('id', 'int');
108111
name = this.column('name', 'string');

test/__snapshots__/Generator/generates-code-from-schema-with-useQualifiedTablePrefix-true.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export class BooksTable extends Table<DBConnection, 'PublicBooksTable'> {
7474
releasedAt = this.optionalColumn('released_at', 'localDate');
7575
timeToRead = this.optionalColumn('time_to_read', 'int');
7676
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
77+
/**
78+
* Sample weight as provided by distributor
79+
*/
7780
weightGrams = this.optionalColumn('weight_grams', 'double');
7881

7982
constructor() {
@@ -102,7 +105,7 @@ import {
102105

103106
/**
104107
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
105-
*/
108+
*/
106109
export class ChaptersTable extends Table<DBConnection, 'PublicChaptersTable'> {
107110
id = this.autogeneratedPrimaryKey('id', 'int');
108111
name = this.column('name', 'string');

test/__snapshots__/Generator/generates-code-from-schema-with-useQualifiedTablePrefix-undefined.expected.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export class BooksTable extends Table<DBConnection, 'BooksTable'> {
7474
releasedAt = this.optionalColumn('released_at', 'localDate');
7575
timeToRead = this.optionalColumn('time_to_read', 'int');
7676
genre = this.optionalColumn<Genre>('genre', 'enum', 'genre');
77+
/**
78+
* Sample weight as provided by distributor
79+
*/
7780
weightGrams = this.optionalColumn('weight_grams', 'double');
7881

7982
constructor() {
@@ -102,7 +105,7 @@ import {
102105

103106
/**
104107
* Chapters information is only available for books with parseable metadata; Consumers should not assume completeness.
105-
*/
108+
*/
106109
export class ChaptersTable extends Table<DBConnection, 'ChaptersTable'> {
107110
id = this.autogeneratedPrimaryKey('id', 'int');
108111
name = this.column('name', 'string');

0 commit comments

Comments
 (0)