File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 11import { randomUUID } from "crypto" ;
2- import { Square , SquareClient , SquareEnvironment } from "../../src" ;
3- import path from "path" ;
42import { readFile } from "fs/promises" ;
3+ import path from "path" ;
4+ import { Square , SquareClient , SquareEnvironment } from "../../src" ;
55
66export const createClient = ( ) : SquareClient => {
77 const token = process . env . TEST_SQUARE_TOKEN ;
@@ -81,9 +81,6 @@ export function createTestCatalogItem(opts: TestCatalogItemOptions = {}): Square
8181 name : opts . name || `Item ${ newTestUuid ( ) } ` ,
8282 description : opts . description || "Test item description" ,
8383 abbreviation : opts . abbreviation || "TST" ,
84- availableOnline : true ,
85- availableForPickup : true ,
86- availableElectronically : false ,
8784 variations : [ variation ] ,
8885 } ,
8986 } ;
Original file line number Diff line number Diff line change 1- import { createClient , newTestUuid } from "./helpers" ;
21import { Square , SquareClient } from "../../src" ;
2+ import { createClient , newTestUuid } from "./helpers" ;
33
44describe ( "Inventory API" , ( ) => {
55 const client : SquareClient = createClient ( ) ;
@@ -24,9 +24,6 @@ describe("Inventory API", () => {
2424 name : "Coffee" ,
2525 description : "Strong coffee" ,
2626 abbreviation : "C" ,
27- availableOnline : true ,
28- availableForPickup : true ,
29- availableElectronically : false ,
3027 variations : [
3128 {
3229 id : "#colombian-coffee" ,
You can’t perform that action at this time.
0 commit comments