We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as far as I can tell the code for StorageMock in src/mock.ts is redundant/not used and should probably be removed. Correct?
export class StorageMock { public get(key: string): Promise<{}> { return new Promise((resolve: Function) => { resolve({}); }); } public set(key: string, value: string): Promise<{}> { return new Promise((resolve: Function) => { resolve({key: key, value: value}); }); } public remove(key: string): Promise<{}> { return new Promise((resolve: Function) => { resolve({key: key}); }); } public query(): Promise<{ res: { rows: Array<{}> }}> { return new Promise((resolve) => { resolve({ res: { rows: [{}] } }); }); } }
The text was updated successfully, but these errors were encountered:
It's used here: https://github.com/lathonez/clicker/blob/master/src/services/clickers.spec.ts#L10
Query could be removed.
EDIT - sorry, was looking at the wrong file. Yes I think it can be removed.
Sorry, something went wrong.
e97c14e
Thanks a lot!
Glad to help. After all, this is the best reference for ionic 2 testing.
No branches or pull requests
as far as I can tell the code for StorageMock in src/mock.ts is redundant/not used and should probably be removed. Correct?
The text was updated successfully, but these errors were encountered: