test: remove ffi specs (#19661)
This commit is contained in:
parent
67169a5d0c
commit
fec54c9c5d
1 changed files with 0 additions and 20 deletions
|
@ -54,26 +54,6 @@ describe('modules support', () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO(alexeykuzmin): Disabled during the Chromium 62 (Node.js 9) upgrade.
|
|
||||||
// Enable it back when "ffi" module supports Node.js 9.
|
|
||||||
// https://github.com/electron/electron/issues/11274
|
|
||||||
xdescribe('ffi', () => {
|
|
||||||
before(function () {
|
|
||||||
if (!nativeModulesEnabled || process.platform === 'win32' ||
|
|
||||||
process.arch === 'arm64') {
|
|
||||||
this.skip()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
it('does not crash', () => {
|
|
||||||
const ffi = require('ffi')
|
|
||||||
const libm = ffi.Library('libm', {
|
|
||||||
ceil: ['double', ['double']]
|
|
||||||
})
|
|
||||||
expect(libm.ceil(1.5)).to.equal(2)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
describe('q', () => {
|
describe('q', () => {
|
||||||
const Q = require('q')
|
const Q = require('q')
|
||||||
describe('Q.when', () => {
|
describe('Q.when', () => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue