File: ignore-locked-tests.patch

package info (click to toggle)
node-babel-plugin-lodash 3.3.4%2B~cs2.0.1-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 916 kB
  • sloc: javascript: 1,542; makefile: 2
file content (58 lines) | stat: -rw-r--r-- 2,130 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Description: ignore tests locked to a dependency version
Author: Xavier Guimard <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-01-09

--- a/test/index.js
+++ b/test/index.js
@@ -20,24 +20,6 @@
 describe('cherry-picked modular builds', function() {
   this.timeout(0)
 
-  _.each(glob.sync(path.join(__dirname, 'fixtures/*/')), (testPath) => {
-    const testName = getTestName(testPath)
-    const lodashId = getLodashId(testName)
-    const actualPath = path.join(testPath, 'actual.js')
-    const expectedPath = path.join(testPath, 'expected.js')
-
-    it(`should work with ${ testName }`, () => {
-      const expected = fs.readFileSync(expectedPath, 'utf8')
-      const actual = transformFileSync(actualPath, {
-        'plugins': [[plugin, { 'id': [lodashId, '@storybook/addon-links'] }]]
-      }).code
-
-      assert.strictEqual(_.trim(actual), _.trim(expected))
-    })
-  })
-
-  /*--------------------------------------------------------------------------*/
-
   _.each(glob.sync(path.join(__dirname, 'error-fixtures/*/')), (testPath) => {
     const testName = getTestName(testPath)
     const actualPath = path.join(testPath, 'actual.js')
@@ -51,25 +33,6 @@
     })
   })
 
-  /*--------------------------------------------------------------------------*/
-
-  _.each(glob.sync(path.join(__dirname, 'mixed-fixtures/*/')), (testPath) => {
-    const testName = getTestName(testPath)
-    const actualPath = path.join(testPath, 'actual.js')
-    const expectedPath = path.join(testPath, 'expected.js')
-    const optionsPath = path.join(testPath, 'options.json')
-    const options = fs.existsSync(optionsPath) ? require(optionsPath) : {}
-
-    it(`should work with ${ testName }`, () => {
-      const expected = fs.readFileSync(expectedPath, 'utf8')
-      const actual = transformFileSync(actualPath, {
-        'plugins': [[plugin, options]]
-      }).code
-
-      assert.strictEqual(_.trim(actual), _.trim(expected))
-    })
-  })
-
   /*--------------------------------------------------------------------------*/
 
   _.each(glob.sync(path.join(__dirname, 'parsing-fixtures/*/')), (testPath) => {