This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Receive a share of votes for between 1 and 3 workshop talks, store in the | |
voter history (voter id, talk id * 3) and votes count (talk id, points total). | |
The voter history supports a voter recasting their votes. | |
The votes count supports calculating the top 3 talks which are revealed and | |
returned to the managmeent server. | |
At startup the management server (verified by public key) sends a list of shares | |
of valid voter ids and talk ids. The program is limited to a fixed array size of | |
voter ids and talk ids, with unused slots set to zero. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Responsible for displaying setup information based on props passed in. | |
*/ | |
import React from 'react'; | |
import { List } from 'immutable' | |
import ProxyStatus from './ProxyStatus' | |
import './Setup.css' | |
const Setup = (props) => { | |
const proxyServers = (proxyServerList) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"allowSyntheticDefaultImports": true | |
}, | |
"exclude": [ | |
"node_modules", | |
"bower_components", | |
"jspm_packages", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Need to run test async and use jest/jasmine done.fail to let it know when an assertion did not work. | |
const routerUnderTest = require('../../client_api') | |
const httptest = require('supertest') | |
const express = require('express') | |
const app = express() | |
app.use('/', routerUnderTest) | |
describe('I can use the REST api', () => { | |
it('displays text for the landing page', (done) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible Node.js debug attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "JEST Test", | |
"type": "node", | |
"request": "launch", |