Test example

j285he-ldap-test-example
Jared He 1 year ago
parent d6509b1bfa
commit 4de22b76c3
  1. 4
      lib/members.ts
  2. 3
      package.json

@ -42,10 +42,12 @@ export async function getMembers(year: string, term: Term): Promise<Member[]> {
} finally {
await client.unbind();
}
console.log(members);
return members;
}
getMembers("2022", "winter");
const dummyMembers: Member[] = [
{
name: "John Smith",

@ -15,7 +15,8 @@
"export": "next export",
"lint": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet",
"lint:fix": "eslint \"{pages,components,lib,hooks,scripts}/**/*.{js,ts,tsx,jsx}\" --quiet --fix",
"check-lockfile": "ts-node ./scripts/check-lockfile"
"check-lockfile": "ts-node ./scripts/check-lockfile",
"test-ldap": "USE_LDAP=true ts-node ./lib/members.ts"
},
"dependencies": {
"@mdx-js/loader": "^1.6.22",

Loading…
Cancel
Save