All files / src/setupTools index.js

84.62% Statements 11/13
50% Branches 2/4
100% Functions 1/1
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 123x 3x   3x 1x 1x 1x     1x 3x  
import LinuxPlatformSetup from './linux';
import WindowsPlatformSetup from './windows';
 
export default (c) => {
    const { process: { platform } } = c;
  I  if (platform === 'linux') return new LinuxPlatformSetup(c);
  I  if (platform === 'win32') return new WindowsPlatformSetup(c);
    // @todo add support for more
 
    throw new Error('Platform unsupported for automated SDK setup');
};