Test an array buffer to have a specific byte length. @param byteLength - The byte length of the array buffer.
(byteLength: number)
| 17 | @param byteLength - The byte length of the array buffer. |
| 18 | */ |
| 19 | byteLength(byteLength: number): this { |
| 20 | return this.addValidator({ |
| 21 | message: (value, label) => `Expected ${label} to have byte length of \`${byteLength}\`, got \`${value.byteLength}\``, |
| 22 | validator: value => value.byteLength === byteLength, |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | Test an array buffer to have a minimum byte length. |
nothing calls this directly
no test coverage detected