mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-19 04:07:33 +08:00
Serialization methods names simplified
This commit is contained in:
@@ -97,7 +97,7 @@ describe("Entity initialization", () => {
|
||||
.to.be.true
|
||||
)
|
||||
it("can serialize", () => {
|
||||
expect(SerializerFactory.getSerializer(SimpleEntity).serialize(entity))
|
||||
expect(SerializerFactory.getSerializer(SimpleEntity).write(entity))
|
||||
.to.equal(`{
|
||||
someNumber: 567
|
||||
someString: "alpha"
|
||||
@@ -263,7 +263,7 @@ describe("Entity initialization", () => {
|
||||
expect(entity.quebec, "assigned 6").to.be.equal(6)
|
||||
})
|
||||
it("can serialize", () => {
|
||||
expect(SerializerFactory.getSerializer(ComplexEntity).serialize(entity))
|
||||
expect(SerializerFactory.getSerializer(ComplexEntity).write(entity))
|
||||
.to.equal(`[[
|
||||
alpha: 32
|
||||
bravo: 78
|
||||
|
||||
Reference in New Issue
Block a user