It occurs to me that a more jasmine-y way of doing this would have been to make a "toHaveTokenizeError()" matcher. Might be a nice cleanup to do later on.