Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration/link api #1139

Merged
merged 8 commits into from
May 11, 2018
Merged

Migration/link api #1139

merged 8 commits into from
May 11, 2018

Conversation

crcommons
Copy link
Contributor

This pull request makes the following changes:

  • Creates a Link component that returns tag that will navigate to angular or react components

Testing checklist:

  • Go to /settings/testroute/1 and click the link

  • you should be taken to data view
    Tests fail because of problems with angular and jest

  • I certify that I ran my checklist

Fixes ushahidi/platform# .

Ping @ushahidi/platform

import Link from "./Link";

test("Link accepts a route string, replace bool, id, className, title, and children", () => {
const component = renderer.create(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to set up a fake angular app before this. So that angular.element(document) returns something useful

@rjmackay rjmackay force-pushed the migration/Link-API branch from c6ca15f to 4cd6d09 Compare May 11, 2018 04:23
@ushbot ushbot temporarily deployed to rackspace_pr May 11, 2018 15:39 Inactive
@ushbot ushbot temporarily deployed to rackspace_pr May 11, 2018 15:39 Inactive
@crcommons crcommons merged commit a000bdb into add-redux May 11, 2018
@crcommons crcommons deleted the migration/Link-API branch May 11, 2018 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants