Skip to content

Commit

Permalink
[ai-form-recognizer] Replace w2 example with preferred in tests. (#23477
Browse files Browse the repository at this point in the history
)

* [ai-form-recognizer] Replace w2 example with preferred in tests.

* Re-record
  • Loading branch information
witemple-msft authored Oct 13, 2022
1 parent 041e8aa commit 59cf1c6
Showing 4 changed files with 7,824 additions and 9,916 deletions.
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -955,27 +955,28 @@ matrix([[true, false]] as const, async (useAad) => {
taxYear: "2018",
w2Copy: "Copy 2 -- To Be Filed with Employee's State, City, or Local Income Tax Return,",
employee: {
socialSecurityNumber: "986-62-1002",
name: "BONNIE F HERNANDEZ",
socialSecurityNumber: "123-45-6789",
name: "ANGEL BROWN",
address: {
houseNumber: "96541",
road: "MOLLY HOLLOW STREET",
city: "KATHRYNMOUTH",
state: "NE",
postalCode: "APT.124",
streetAddress: "96541 MOLLY HOLLOW STREET",
houseNumber: "4567",
road: "MAIN STREET",
city: "BUFFALO",
state: "WA",
postalCode: "12345",
streetAddress: "4567 MAIN STREET",
},
},
controlNumber: "000086242",
employer: {
idNumber: "48-1069918",
name: "BLUE BEACON USA, LP",
idNumber: "98-7654321",
name: "CONTOSO LTD",
address: {
poBox: "PO BOX 856",
city: "SALINA",
state: "KS",
postalCode: "67402-0856",
streetAddress: "PO BOX 856",
houseNumber: "123",
road: "MICROSOFT WAY",
city: "REDMOND",
state: "WA",
postalCode: "98765",
streetAddress: "123 MICROSOFT WAY",
},
},
wagesTipsAndOtherCompensation: 37160.56,
@@ -1006,23 +1007,24 @@ matrix([[true, false]] as const, async (useAad) => {
amount: 123.3,
},
],
isRetirementPlan: "true",
isStatutoryEmployee: "true",
isThirdPartySickPay: "true",
other: "DISINS 170.85",
stateTaxInfos: [
{
state: "PA",
employerStateIdNumber: "18574095",
employerStateIdNumber: "87654321",
},
{
state: "WA",
employerStateIdNumber: "18743231",
employerStateIdNumber: "112345678",
},
],
localTaxInfos: [
{
localWagesTipsEtc: 37160.56,
localIncomeTax: 51,
localityName: "Cmberland Vly/ Mddl",
localityName: "Cmberland Vly/Mddl",
},
{
localWagesTipsEtc: 37160.56,
@@ -1033,7 +1035,7 @@ matrix([[true, false]] as const, async (useAad) => {
});

it("png file stream", async function (this: Mocha.Context) {
const filePath = path.join(ASSET_PATH, "w2", "gold_simple_w2.png");
const filePath = path.join(ASSET_PATH, "w2", "w2-single.png");
const stream = fs.createReadStream(filePath);

const poller = await client.beginAnalyzeDocument(

0 comments on commit 59cf1c6

Please sign in to comment.