import { Diagnostic , Rule , Outcome } from "@siteimprove/alfa-act" ; import { Record } from "@siteimprove/alfa-record" ; import { Result } from "@siteimprove/alfa-result" ; import { Page } from "@siteimprove/alfa-web" ; export function passed < T , Q , S > ( rule , target , expectations ) { return Outcome . Passed . of ( rule , target , Record . from ( Object . entries ( expectations ) ) ) . toJSON ( ) ; } export function failed < T , Q , S > ( rule , target , expectations ) { return Outcome . Failed . of ( rule , target , Record . from ( Object . entries ( expectations ) ) ) . toJSON ( ) ; } export function inapplicable < T , Q , S > ( rule ) { return Outcome . Inapplicable . of ( rule ) . toJSON ( ) ; } export function cantTell < T , Q , S > ( rule , target ) { return Outcome . CantTell . of ( rule , target ) . toJSON ( ) ; }