Skip to content

Commit a6ebb2d

Browse files
committed
test: remove duplicate tests
1 parent 2859368 commit a6ebb2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+22
-1258
lines changed

test/github-issues/10121/entity/city.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Column, Entity, PrimaryColumn } from "../../../../src"
33
@Entity({ name: "M_CITY" })
44
export class CityModel {
55
@PrimaryColumn({ name: "CITY_ID" })
6-
id!: string
6+
id: string
77

88
@PrimaryColumn({ name: "PREF_ID" })
9-
prefId!: string
9+
prefId: string
1010

1111
@Column({ name: "CITY_NAME" })
12-
name!: string
12+
name: string
1313
}

test/github-issues/10121/entity/estate.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ import { PrefModel } from "./pref"
1111
@Entity({ name: "M_ESTATE" })
1212
export class EstateModel {
1313
@PrimaryGeneratedColumn({ name: "ESTATE_ID" })
14-
id!: number
14+
id: number
1515

1616
@Column({ name: "ESTATE_NAME", type: "varchar", length: 100 })
17-
name!: string
17+
name: string
1818

1919
@Column({ name: "PREF_ID", comment: "都道府県ID" })
20-
prefId!: string
20+
prefId: string
2121

2222
@Column({ name: "CITY_ID", type: "varchar", comment: "市区ID" })
23-
cityId!: string
23+
cityId: string
2424

2525
@OneToOne(() => CityModel)
2626
@JoinColumn([
2727
{ name: "CITY_ID", referencedColumnName: "id" },
2828
{ name: "PREF_ID", referencedColumnName: "prefId" },
2929
])
30-
city!: CityModel
30+
city?: CityModel
3131

3232
@OneToOne(() => PrefModel)
3333
@JoinColumn([{ name: "PREF_ID", referencedColumnName: "id" }])
34-
pref!: PrefModel
34+
pref?: PrefModel
3535
}

test/github-issues/10121/entity/pref.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { Column, Entity, PrimaryColumn } from "../../../../src"
33
@Entity({ name: "E_PREF" })
44
export class PrefModel {
55
@PrimaryColumn({ name: "PREF_ID" })
6-
id!: string
6+
id: string
77

8-
@Column({ name: "PREF_NAME", nullable: false })
9-
name!: string
8+
@Column({ name: "PREF_NAME" })
9+
name: string
1010

11-
@Column({ name: "PREF_KANA", nullable: false })
12-
kanaName!: string
11+
@Column({ name: "PREF_KANA" })
12+
kanaName: string
1313
}

test/github-issues/10121/issue-10121.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { expect } from "chai"
12
import { DataSource } from "../../../src"
23
import {
34
closeTestingConnections,
@@ -42,10 +43,14 @@ describe("github issues > #10121 Multiple relations with same columns", () => {
4243

4344
const estates = await dataSource
4445
.getRepository(EstateModel)
45-
.find({ relations: ["city", "pref"] })
46+
.find({
47+
relations: {
48+
city: true,
49+
pref: true,
50+
},
51+
})
4652

47-
estates.length.should.be.eql(2)
48-
estates.should.include.deep.members([
53+
expect(estates).to.deep.equal([
4954
{
5055
id: 1,
5156
name: "Tokyo Tower",

test/github-issues/10148/entity/basics.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

test/github-issues/10148/entity/groups.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

test/github-issues/10148/entity/rounds.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

test/github-issues/10148/entity/servers.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/github-issues/10148/issue-10148.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

test/github-issues/11109/entity/customer.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)