mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Added tests for isNew() and toPointer() of Parse object
This commit is contained in:
@@ -37,6 +37,14 @@ function test_object() {
|
||||
|
||||
const game = new Game();
|
||||
|
||||
if (!game.isNew()) {
|
||||
console.error("Game should be new");
|
||||
}
|
||||
|
||||
if (game.toPointer().className !== "Game") {
|
||||
console.log("Class name should be 'Game")
|
||||
}
|
||||
|
||||
game.fetch({
|
||||
success(g: Game) { }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user