This is an automated email from the ASF dual-hosted git repository.

jgemignani pushed a commit to branch PG12
in repository https://gitbox.apache.org/repos/asf/age.git

commit f6fccd8c1bed438af5d86e8bd1fa70d871095ca8
Author: Fahad Zaheer <[email protected]>
AuthorDate: Fri Feb 17 00:41:00 2023 +0500

    Removed async from function definitions (#680)
    
    Found async function without any await expressions in NodeJS Driver. Async 
keyword is used in Asynchronous programming and for the functions that wait for 
some responses. These functions dont need to be Asynchronous.
---
 drivers/nodejs/test/Agtype.test.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/nodejs/test/Agtype.test.ts 
b/drivers/nodejs/test/Agtype.test.ts
index 27f5f4e4..5ae26b54 100644
--- a/drivers/nodejs/test/Agtype.test.ts
+++ b/drivers/nodejs/test/Agtype.test.ts
@@ -20,7 +20,7 @@
 import { AGTypeParse } from '../src'
 
 describe('Parsing', () => {
-  it('Vertex', async () => {
+  it('Vertex', () => {
     expect(
       AGTypeParse('{"id": 844424930131969, "label": "Part", "properties": 
{"part_num": "123", "number": 3141592653589793, "float": 
3.141592653589793}}::vertex')
     ).toStrictEqual(new Map<string, any>(Object.entries({
@@ -34,7 +34,7 @@ describe('Parsing', () => {
     })))
   })
 
-  it('Edge', async () => {
+  it('Edge', () => {
     expect(
       AGTypeParse('{"id": 1125899906842625, "label": "used_by", "end_id": 
844424930131970, "start_id": 844424930131969, "properties": {"quantity": 
1}}::edge')
     ).toStrictEqual(new Map(Object.entries({
@@ -46,7 +46,7 @@ describe('Parsing', () => {
     })))
   })
 
-  it('Path', async () => {
+  it('Path', () => {
     expect(
       AGTypeParse('[{"id": 844424930131969, "label": "Part", "properties": 
{"part_num": "123"}}::vertex, {"id": 1125899906842625, "label": "used_by", 
"end_id": 844424930131970, "start_id": 844424930131969, "properties": 
{"quantity": 1}}::edge, {"id": 844424930131970, "label": "Part", "properties": 
{"part_num": "345"}}::vertex]::path')
     ).toStrictEqual([
@@ -70,7 +70,7 @@ describe('Parsing', () => {
     ])
   })
 
-  it('Null Properties', async () => {
+  it('Null Properties', () => {
     expect(
       AGTypeParse('{"id": 1688849860263937, "label": "car", "properties": 
{}}::vertex')
     ).toStrictEqual(new Map<string, any>(Object.entries({

Reply via email to