Skip to content

Class: MockProfile ​

Implements ​

  • profile

Constructors ​

Constructor ​

ts
new MockProfile(name?: string): MockProfile;

Parameters ​

ParameterTypeDefault value
namestring""

Returns ​

MockProfile

Methods ​

create() ​

ts
static create(name?: string): MockProfile;

Parameters ​

ParameterTypeDefault value
namestring""

Returns ​

MockProfile


mock() ​

ts
static mock(name?: string): profile;

Parameters ​

ParameterTypeDefault value
namestring""

Returns ​

profile

Properties ​

name ​

ts
name: string;

online ​

ts
online: Mock<() => boolean>;

Returns ​

Whether the profile is online.

Implementation of ​

ts
profile.online

unique_nick ​

ts
unique_nick: Mock<() => string>;

Returns ​

Unique GameSpy nick.

Implementation of ​

ts
profile.unique_nick