|
3 | 3 | const babelEslint = require('babel-eslint') |
4 | 4 | const espree = require('espree') |
5 | 5 | const utils = require('../../../lib/utils/index') |
6 | | -const chai = require('chai') |
7 | | - |
8 | | -const assert = chai.assert |
| 6 | +const assert = require('assert') |
9 | 7 |
|
10 | 8 | describe('getComputedProperties', () => { |
11 | 9 | const parse = function (code) { |
@@ -59,11 +57,11 @@ describe('getComputedProperties', () => { |
59 | 57 | 'it detects all computed properties' |
60 | 58 | ) |
61 | 59 |
|
62 | | - assert.notOk(computedProperties[0].value) |
| 60 | + assert.ok(!computedProperties[0].value) |
63 | 61 | assert.ok(computedProperties[1].value) |
64 | 62 | assert.ok(computedProperties[2].value) |
65 | | - assert.notOk(computedProperties[3].value) |
66 | | - assert.notOk(computedProperties[4].value) |
| 63 | + assert.ok(!computedProperties[3].value) |
| 64 | + assert.ok(!computedProperties[4].value) |
67 | 65 | assert.ok(computedProperties[5].value) |
68 | 66 | }) |
69 | 67 |
|
@@ -108,7 +106,7 @@ describe('getComputedProperties', () => { |
108 | 106 | 'it detects all computed properties' |
109 | 107 | ) |
110 | 108 |
|
111 | | - assert.notOk(computedProperties[0].value) |
| 109 | + assert.ok(!computedProperties[0].value) |
112 | 110 | }) |
113 | 111 | }) |
114 | 112 |
|
@@ -418,19 +416,19 @@ describe('getComponentProps', () => { |
418 | 416 |
|
419 | 417 | assert.ok(props[0].node.type === 'Literal') |
420 | 418 | assert.deepEqual(props[0].key, props[0].node) |
421 | | - assert.notOk(props[0].value) |
| 419 | + assert.ok(!props[0].value) |
422 | 420 |
|
423 | 421 | assert.ok(props[1].node.type === 'Identifier') |
424 | | - assert.notOk(props[1].key) |
425 | | - assert.notOk(props[1].value) |
| 422 | + assert.ok(!props[1].key) |
| 423 | + assert.ok(!props[1].value) |
426 | 424 |
|
427 | 425 | assert.ok(props[2].node.type === 'TemplateLiteral') |
428 | 426 | assert.deepEqual(props[2].key, props[2].node) |
429 | | - assert.notOk(props[2].value) |
| 427 | + assert.ok(!props[2].value) |
430 | 428 |
|
431 | 429 | assert.ok(props[3].node.type === 'Literal') |
432 | | - assert.notOk(props[3].key) |
433 | | - assert.notOk(props[3].value) |
| 430 | + assert.ok(!props[3].key) |
| 431 | + assert.ok(!props[3].value) |
434 | 432 | }) |
435 | 433 | }) |
436 | 434 |
|
|
0 commit comments