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
| import { mockNetworkInterface } from 'react-apollo/test-utils'; | |
| const mocks = [ | |
| { | |
| request: { | |
| query: ..., | |
| variables: {} | |
| }, | |
| result: { | |
| data: { |
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
| import React from 'react'; | |
| import { ApolloClient, ApolloProvider } from 'react-apollo'; | |
| import renderer from 'react-test-renderer'; | |
| import MockNetworkInterface from 'apollo-mocknetworkinterface'; | |
| import TestedComponentWithApollo from './TestedComponentWithApollo'; | |
| // create mocked network interface, to simulate communication with graphQL server | |
| const networkInterface = new MockNetworkInterface(...); | |
| const client = new ApolloClient({ networkInterface, addTypename: false }); |
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
| import semver from 'semver'; | |
| import { engines } from './package'; | |
| const version = engines.node; | |
| if (!semver.satisfies(process.version, version)) { | |
| console.log(`Required node version ${version} not satisfied with current version ${process.version}.`); | |
| process.exit(1); | |
| } |
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
| var pixelWidth = require('string-pixel-width').default; | |
| var width = pixelWidth('My text ...', { size: 10 }); | |
| console.log('This text has width ' + width + 'px in the size of 10px.'); | |
| // "This text has width 43.5px in the size of 10px." |
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
| <!DOCTYPE html> | |
| <html lang="en" class="no-js"> | |
| <head> | |
| <style type="text/css"> | |
| thead{background:red} | |
| </style> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!--[if lt IE 9]> | |
| <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> |
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
| [37966154266.0, 255132680121.0, 171650949545171.0, 128458370734.0, 109806192369339.0, 140972719304814.0, 113130142095931.0, 65777593700.0, 299195905891.0, 273531189144.0, 76121703241.0, 112324635469995.0, 103076089787357.0, 70488720814.0, 116282456784.0, 243529649042349.0, 124186145755.0, 222190851130953.0, 169835113075956.0, 115899995153554.0, 129458713490.0, 68663174390.0, 131870960091.0, 116171061735236.0, 102933722750.0, 265155537991.0, 180613255303275.0, 119063861466791.0, 116914458334869.0, 107656279266511.0, 185993624774335.0, 132021646843962.0, 311354178979218.0, 206276076058224.0, 138479367229.0, 375613175807080.0, 271802586243334.0, 207842509241217.0, 176680289047154.0, 129725323321.0, 336328666439257.0, 206289479433535.0, 225063780921514.0, 90594467955.0, 124213364276291.0, 223516744375301.0, 229397500350.0, 154296237924063.0, 221119377898604.0, 120015012993.0, 188056814570909.0, 124800437547856.0, 119583541430459.0, 138671242395.0, 119857301430367.0, 120920371294050.0, 119026111453343.0, 140077966 |
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
| [37966154266.0, 255132680121.0, 171650949545171.0, 128458370734.0, 109806192369339.0, 140972719304814.0, 113130142095931.0, 65777593700.0, 299195905891.0, 273531189144.0, 76121703241.0, 112324635469995.0, 103076089787357.0, 70488720814.0, 116282456784.0, 243529649042349.0, 124186145755.0, 222190851130953.0, 169835113075956.0, 115899995153554.0, 129458713490.0, 68663174390.0, 131870960091.0, 116171061735236.0, 102933722750.0, 265155537991.0, 180613255303275.0, 119063861466791.0, 116914458334869.0, 107656279266511.0, 185993624774335.0, 132021646843962.0, 311354178979218.0, 206276076058224.0, 138479367229.0, 375613175807080.0, 271802586243334.0, 207842509241217.0, 176680289047154.0, 129725323321.0, 336328666439257.0, 206289479433535.0, 225063780921514.0, 90594467955.0, 124213364276291.0, 223516744375301.0, 229397500350.0, 154296237924063.0, 221119377898604.0, 120015012993.0, 188056814570909.0, 124800437547856.0, 119583541430459.0, 138671242395.0, 119857301430367.0, 120920371294050.0, 119026111453343.0, 140077966 |
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
| { | |
| "query": { | |
| "bool": { | |
| "must": [ | |
| { | |
| "term": { | |
| "country": "CZ" | |
| } | |
| }, | |
| { |
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
| { | |
| "id" : "150534708294627_576393192375441", | |
| "story" : "\"Gaspard Smile simply dial *151#...\" on their own photo.", | |
| "privacy" : { | |
| "value" : "" | |
| }, | |
| "type" : "status", | |
| "created_time" : new Date("5.1.2013 18:37:19"), | |
| "updated_time" : new Date("5.1.2013 18:37:19"), | |
| "comments" : [], |
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
| { | |
| "id" : "150534708294627_576393192375441", | |
| "story" : "\"Gaspard Smile simply dial *151#...\" on their own photo.", | |
| "privacy" : { | |
| "value" : "" | |
| }, | |
| "type" : "status", | |
| "created_time" : new Date("5.1.2013 18:37:19"), | |
| "updated_time" : new Date("5.1.2013 18:37:19"), | |
| "comments" : [], |