File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; ; -*- lexical-binding : t -*-
2
+ ; ;; typescript-mode-lexical-binding-tests --- This file contains test for typescript-mode.el under enabled lexical-binding
3
+
4
+ ; ;; Commentary:
5
+ ; ; To know how to run the tests, see typescript-mode-tests.el
6
+
7
+ (require 'ert )
8
+
9
+ ; ; reload typescript-mode with lexical-binding enabled
10
+ (with-temp-buffer
11
+ (insert-file-contents " typescript-mode.el" )
12
+ (ignore-errors
13
+ (while (setq sexp (read (current-buffer )))
14
+ (eval sexp t )
15
+ ))
16
+ )
17
+
18
+ (require 'typescript-mode-test-utilities )
19
+
20
+ (ert-deftest lexical-binding--indentation-does-not-throw-error ()
21
+ (with-temp-buffer
22
+ (insert-file-contents " test-files/indentation-reference-document.ts" )
23
+ (typescript-mode )
24
+ (goto-line 2 )
25
+ (typescript-indent-line)))
26
+
27
+ (provide 'typescript-mode-lexical-binding-tests )
Original file line number Diff line number Diff line change 11
11
(require 'typescript-mode-test-utilities )
12
12
(require 'typescript-mode-general-tests )
13
13
(require 'typescript-mode-jsdoc-tests )
14
+ (require 'typescript-mode-lexical-binding-tests )
14
15
15
16
(provide 'typescript-mode-tests )
16
17
You can’t perform that action at this time.
0 commit comments