Skip to content

Commit 856796b

Browse files
committed
Fix tslint errors
1 parent 3c0d1c5 commit 856796b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/txn.spec.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let client: dgraph.DgraphClient;
1111

1212
describe("txn", () => {
1313
describe("queryWithVars", () => {
14-
let uid : any;
14+
let uid;
1515
beforeAll(async () => {
1616
client = await setup();
1717
await setSchema(client, "name: string @index(exact) .");
@@ -20,7 +20,7 @@ describe("txn", () => {
2020
mu.setCommitNow(true);
2121
mu.setSetNquads('_:alice <name> "Alice" .');
2222
const mutres = await client.newTxn().mutate(mu);
23-
uid = mutres.getUidsMap().get("alice")
23+
uid = mutres.getUidsMap().get("alice");
2424
});
2525

2626
it("should query with variables", async () => {
@@ -60,7 +60,7 @@ describe("txn", () => {
6060
let resRdf = res.getRdf_asB64();
6161
let buff = Buffer.from(resRdf, "base64");
6262
expect(buff.toString("utf-8")).toEqual(
63-
"<" + uid + '> <name> "Alice" .\n'
63+
`<${uid}> <name> \"Alice\" .\n`
6464
);
6565

6666
res = await client
@@ -72,11 +72,10 @@ describe("txn", () => {
7272
$b: true, // non-string properties are ignored
7373
}
7474
);
75-
7675
resRdf = res.getRdf_asB64();
7776
buff = Buffer.from(resRdf, "base64");
7877
expect(buff.toString("utf-8")).toEqual(
79-
"<" + uid + '> <name> "Alice" .\n'
78+
`<${uid}> <name> \"Alice\" .\n`
8079
);
8180
});
8281

0 commit comments

Comments
 (0)