()
| 36 | } |
| 37 | |
| 38 | async hasValueAndIsNotEmpty() { |
| 39 | const value = await this.getStorage(); |
| 40 | if ( |
| 41 | this.containsValue(value) && |
| 42 | typeof value.data !== 'undefined' && |
| 43 | value.data !== null && |
| 44 | Object.keys(value.data).length && |
| 45 | this.ttlValid(value) |
| 46 | ) { |
| 47 | return true; |
| 48 | } |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | async fullState() { |
| 53 | const value = await this.getStorage(); |
no test coverage detected