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

Statically serve files in /data #37

Merged
merged 14 commits into from
Jun 6, 2018
Merged

Conversation

jtart
Copy link
Contributor

@jtart jtart commented Jun 5, 2018

JIRA: https://jira.dev.bbc.co.uk/browse/NEWSART-546

Statically serves all files in the /data directory over /data.

  • JIRA ticket added

  • Pull request URL added to JIRA ticket

  • Up-to-date with latest - git pull --rebase origin latest

  • Runs locally - npm run dev & http://localhost:7080/

  • Tests added for new features

  • Tests pass - npm test

  • E2E tests pass - npm run test:e2e (requires server running see README for details)

  • Test engineer approval

@jtart jtart force-pushed the NEWSART-546-serve-articles-data branch from 483567d to 16d3fe1 Compare June 5, 2018 14:26
@jtart jtart force-pushed the NEWSART-546-serve-articles-data branch from 3738e69 to 2a4acc1 Compare June 5, 2018 15:34
});

describe('Response Body', () => {
it('should be an object', () => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

});
});

it('should contain a blocks object', () => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

});

describe('Response Body', () => {
testScenarioRequest('should be an object', '01', ({ body }) => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

expect(body).to.be.an('object');
});

testScenarioRequest('should contain a blocks object', '01', ({ body }) => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

});

describe('Response Body', () => {
testScenarioRequest('should be an object', ({ body }) => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

expect(body).to.be.an('object');
});

testScenarioRequest('should contain a blocks object', ({ body }) => {
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Jun 6, 2018

Code Climate has analyzed commit 42813c2 and detected 0 issues on this pull request.

View more on Code Climate.

@jtart jtart mentioned this pull request Jun 6, 2018
@jamesbhobbs jamesbhobbs added this to Code Review in News Article Jun 6, 2018
@jamesbhobbs jamesbhobbs moved this from Code Review to 2nd Code Review in News Article Jun 6, 2018
@jtart jtart merged commit 86dbb62 into latest Jun 6, 2018
News Article automation moved this from 2nd Code Review to Done Jun 6, 2018
@jtart jtart deleted the NEWSART-546-serve-articles-data branch June 6, 2018 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
News Article
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants