-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #784 from oskarhane/react
Switch to React 16.4
- Loading branch information
Showing
170 changed files
with
7,564 additions
and
7,592 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
{ | ||
"presets": ["es2015", "stage-2", "react"], | ||
"plugins": [ | ||
"preact-require", | ||
[ | ||
"transform-react-jsx", | ||
{ | ||
"pragma": "h" | ||
} | ||
] | ||
] | ||
"presets": ["es2015", "stage-2", "react"] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright (c) 2002-2018 "Neo4j, Inc" | ||
* Network Engine for Objects in Lund AB [http://neotechnology.com] | ||
* | ||
* This file is part of Neo4j. | ||
* | ||
* Neo4j is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* global Cypress, cy, test, expect */ | ||
|
||
const commands = [ | ||
':style', | ||
':server user add', | ||
':server user list', | ||
':server change-password', | ||
':server status', | ||
':server connect', | ||
':help', | ||
':play cypher', | ||
':play https://guides.neo4j.com/reco', | ||
':sysinfo', | ||
':schema', | ||
':history', | ||
':config', | ||
':params', | ||
':param x => 1', | ||
':param y: 2', | ||
':queries', | ||
':get /', | ||
':unknown', | ||
'RETURN rand()' | ||
] | ||
|
||
describe('Commands', () => { | ||
it('can run all simple commands not connected without blowing up', () => { | ||
commands.forEach(cmd => { | ||
cy.executeCommand(cmd) | ||
cy.executeCommand(':clear') | ||
}) | ||
}) | ||
it('can show connection error', () => { | ||
const password = 'unlikely password' | ||
cy.connect('neo4j', password, undefined, false) | ||
}) | ||
it('can connect', () => { | ||
const password = Cypress.env('browser-password') || 'newpassword' | ||
cy.connect('neo4j', password) | ||
}) | ||
it('can run all simple commands while connected without blowing up', () => { | ||
commands.forEach(cmd => { | ||
cy.executeCommand(cmd) | ||
cy.executeCommand(':clear') | ||
}) | ||
}) | ||
}) |
This file contains 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
11 changes: 11 additions & 0 deletions
11
src/browser/components/DesktopIntegration/__snapshots__/index.test.js.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<DesktopIntegration> calls onMount with data on mounting 1`] = `<div />`; | ||
exports[`<DesktopIntegration> calls onMount with data on mounting 2`] = `<div />`; | ||
exports[`<DesktopIntegration> calls onXxx with data on event XXX 1`] = `<div />`; | ||
exports[`<DesktopIntegration> does not render anything if no integration point 1`] = `<div />`; | ||
exports[`<DesktopIntegration> does not render anything if there is an integration point 1`] = `<div />`; |
This file contains 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
Oops, something went wrong.