mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 17:31:36 -06:00
skip some tests (for now) on windows (#57)
This commit is contained in:
parent
1047a26f15
commit
4c7a547f26
@ -4,6 +4,8 @@ const path = require('path');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
|
||||
const { isMac } = require('../js/utils/misc.js')
|
||||
|
||||
const snippetBase64 = require('./fixtures/snippet/snippet-base64.js');
|
||||
|
||||
// mock child_process used in ScreenSnippet
|
||||
@ -52,6 +54,9 @@ function createTestFile(done) {
|
||||
|
||||
describe('Tests for ScreenSnippet', function() {
|
||||
describe('when reading a valid jpeg file', function() {
|
||||
|
||||
// skip test for windows - until feature is supported
|
||||
if (isMac) {
|
||||
it('should match base64 output', function(done) {
|
||||
let s = new ScreenSnippet();
|
||||
s.capture().then(gotImage);
|
||||
@ -62,6 +67,7 @@ describe('Tests for ScreenSnippet', function() {
|
||||
done();
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
it('should remove output file after completed', function(done) {
|
||||
createTestFile(function(testfileName) {
|
||||
@ -97,6 +103,8 @@ describe('Tests for ScreenSnippet', function() {
|
||||
}
|
||||
});
|
||||
|
||||
// skip test for windows - until feature is supported
|
||||
if (isMac) {
|
||||
it('should fail if read file fails', function(done) {
|
||||
var origFsReadFile = fs.readFile;
|
||||
|
||||
@ -125,4 +133,5 @@ describe('Tests for ScreenSnippet', function() {
|
||||
fs.readFile = origFsReadFile;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user