All files / test/config downloader.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143      1x                                                                                                                                                                                                                                                                                      
// This file is used to set up the various configs to use in the tests for
// firmwares and the like
 
module.exports = {
  fw: {
    'name': 'test_firmware',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'repo': 'github',
    'firmata': false
  },
 
  npm_fw: {
    'name': 'test_firmware',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'npm': {
      'package': 'test-pkg'
    },
    'firmata': false
  },
 
  npm_fw_ver: {
    'name': 'test_firmware',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'npm': {
      'package': 'test-pkg',
      'version': '2.7.3'
    },
    'firmata': false
  },
 
  npm_fw_repo: {
    'name': 'test_firmware',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'npm': {
      'repo': 'git+https://www.github.com/test/test-package',
      'package': 'test-pkg'
    },
    'firmata': false
  },
 
  gh_fw: {
    'name': 'test_firmware',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'repo': 'git+https://github.com/test/test-package',
    'firmata': false
  },
 
  gh_fw2: {
    'name': 'test_firmware2',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'firmata': false
  },
 
  gh_fw3: {
    'name': 'test_firmware3',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'repo': 'https://github.com/test/test-package',
    'firmata': false
  },
 
  gh_branch_fw: {
    'name': 'test_firmware4',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'repo': 'git+https://github.com/test/test-package#dev-branch',
    'firmata': false
  },
 
  gh_master_branch_fw: {
    'name': 'test_firmware5',
    'deviceID': 0x01,
    'creatorID': 0x00,
    'repo': 'git+https://github.com/test/test-package',
    'firmata': false
  },
 
  manifest: {
    'backpack': {
      'bins': '/firmware/bin/backpack/',
      'hexPath': 'backpack.ino.hex'
    },
    'firmata': {
      'bins': '/firmware/bin/firmata/',
      'hexPath': '/firmata.ino.hex'
    }
  },
 
  multi_manifest: {
    'firmata': {
      'multi': true,
      'firmata1': {
        'bins': '/firmware/bin/firmata1/',
        'hexPath': '/firmata.ino.hex'
      },
      'firmata2': {
        'bins': '/firmware/bin/firmata2/',
        'hexPath': '/firmata.ino.hex'
      }
    }
  },
 
  options: {
    board: 'nano',
    port: '/dev/dummy',
    firmata: true,
    i2c_address: undefined,
    useFirmata: true,
    firmataName: ''
  },
 
  named_firmata_options: {
    board: 'nano',
    port: '/dev/dummy',
    firmata: true,
    i2c_address: undefined,
    useFirmata: true,
    firmataName: 'firmata2'
  },
 
  no_named_firmata_options: {
    board: 'nano',
    port: '/dev/dummy',
    firmata: true,
    i2c_address: undefined,
    useFirmata: true
  },
 
  backpack_options: {
    board: 'uno',
    port: '/dev/dummy',
    firmata: false,
    i2c_address: undefined,
    useFirmata: false
  }
}