(type)
| 55 | } |
| 56 | |
| 57 | assertPopupActionType(type) { |
| 58 | this.assertPopupVisible() |
| 59 | const expectedAction = this._actionType || this._defaultAction |
| 60 | if (expectedAction !== type) { |
| 61 | throw new Error(`Popup action does not fit the expected action type. Expected popup action to be '${expectedAction}' not '${type}`) |
| 62 | } |
| 63 | this.clear() |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | export default Popup |
no test coverage detected