This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import{describe,expect,it}from"vitest";
import{
mapPageTextToErrorCode,
mapUrlToErrorCode,
}from"@/modules/rpa/error-mapper";
describe("error-mapper",()=>{
it("无运力页 → CARRIER_NO_CAPACITY",()=>{
expect(mapPageTextToErrorCode("No carriers available for this lane")).toBe(
"CARRIER_NO_CAPACITY",
);
});
it("不支持邮编 → ADDRESS_NOT_SUPPORTED",()=>{
expect(mapPageTextToErrorCode("This zip code is not supported")).toBe(