@@ -23,7 +23,6 @@ describe("pwa-node", function()
2323 end )
2424
2525 describe (" typescript" , function ()
26-
2726 async .it (
2827 " can be debugged with simple config" ,
2928 wrap (function (done )
@@ -54,7 +53,7 @@ describe("pwa-node", function()
5453 try_exit ()
5554 end )
5655
57- test_utils .on_session_end (function ()
56+ test_utils .on_session_end (function ()
5857 termination_happened = true
5958
6059 try_exit ()
@@ -75,32 +74,31 @@ describe("pwa-node", function()
7574 test_utils .add_listener (" after" , " event_stopped" , function (session , body )
7675 assert .equal (body .reason , " breakpoint" )
7776
78- local bps = breakpoints .get (bufexpr )[bufexpr ]
77+ local bps = breakpoints .get (bufexpr )[bufexpr ]
7978
80- assert .equal (# bps , 1 )
79+ assert .equal (# bps , 1 )
8180
82- local bp_signs = test_utils .get_breakpoint_signs (bufexpr )
81+ local bp_signs = test_utils .get_breakpoint_signs (bufexpr )
8382
84- assert .equal (# bp_signs , 1 )
83+ assert .equal (# bp_signs , 1 )
8584
86- for _ , bp in ipairs (bp_signs ) do
87- assert .equal (# bp .signs , 1 )
85+ for _ , bp in ipairs (bp_signs ) do
86+ assert .equal (# bp .signs , 1 )
8887
89- for _ , sign in ipairs (bp .signs ) do
90- assert .equal (sign .name , " DapBreakpoint" )
91- end
92- end
88+ for _ , sign in ipairs (bp .signs ) do
89+ assert .equal (sign .name , " DapBreakpoint" )
90+ end
91+ end
9392
94- done ()
93+ done ()
9594 end )
9695
97- test_utils .on_session_end (function ()
96+ test_utils .on_session_end (function ()
9897 done ()
9998 end )
10099
101100 dap .run (launch_config )
102101 end , 1 )
103102 )
104-
105103 end )
106104end )
0 commit comments