Package: node-external-editor / 3.1.0+dfsg-2

fix-test-for-debci.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: fix test for debci
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-12-08

--- a/test/spec/main.spec.ts
+++ b/test/spec/main.spec.ts
@@ -137,10 +137,10 @@
 
     it("dir", () => {
         editor = new ExternalEditor("testing", {
-            dir: __dirname,
+            dir: '/tmp',
         });
 
-        assert.equal(dirname(editor.tempFile), __dirname);
+        assert.equal(dirname(editor.tempFile), '/tmp');
     });
 
     it("mode", () => {