Skip to content

Commit

Permalink
Removing unused code for StorageMock (from Ionic mocks.ts). closes #241
Browse files Browse the repository at this point in the history
  • Loading branch information
lathonez committed Apr 20, 2017
1 parent 4d8d00e commit e97c14e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="2.12.1"></a>
# 2.12.1 (2017-04-20)

### Bug Fixes

* **Unit**: Remove unused mocks code [#241](https://github.com/lathonez/clicker/issues/241) ([](https://github.com/lathonez/clicker/commit/))

<a name="2.12.0"></a>
# 2.12.0 (2017-04-11)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test-coverage": "ng test --code-coverage",
"test-ci": "ng test --watch=false --code-coverage"
},
"version": "2.12.0",
"version": "2.12.1",
"dependencies": {
"@angular/common": "4.0.0",
"@angular/compiler": "4.0.0",
Expand Down
33 changes: 1 addition & 32 deletions src/mocks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* tslint:disable */
/* tslint:disable */
// IONIC:
import { EventEmitter} from '@angular/core';
import { FormBuilder } from '@angular/forms';
Expand Down Expand Up @@ -159,37 +159,6 @@ export class StatusMock {
}
}

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: [{}]
}
});
});
}
}

export class MenuMock {
public close(): any {
return new Promise((resolve: Function) => {
Expand Down

0 comments on commit e97c14e

Please sign in to comment.