Browse Source

Add some simple JS testing snippets

Andrew Swistak 6 năm trước cách đây
mục cha
commit
7879aec5c3
1 tập tin đã thay đổi với 30 bổ sung0 xóa
  1. 30 0
      vim/snippets/javascript.snippets

+ 30 - 0
vim/snippets/javascript.snippets

@@ -0,0 +1,30 @@
+snippet des "Describe (js)"
+	describe('${1:description}', () => {
+		$0
+	});
+
+snippet it "it (js)"
+	it('${1:description}', () => {
+		$0
+	});
+
+snippet bef "before each (js)"
+	beforeEach(() => {
+		$0
+	});
+
+snippet aft "after each (js)"
+	afterEach(() => {
+		$0
+	});
+
+snippet befa "before all (js)"
+	beforeAll(() => {
+		$0
+	});
+
+snippet afta "after all (js)"
+	afterAll(() => {
+		$0
+	});
+