This repository was archived by the owner on Sep 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 84
84
.disclaimer--message .base--h6 {
85
85
padding-top : 6px ;
86
86
}
87
+
88
+ .gdpr-info {
89
+ font-size : 10pt ;
90
+ margin-top : 1em ;
91
+ }
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ const app = require('../../app');
24
24
25
25
26
26
describe ( 'express' , ( ) => {
27
- it ( 'load home page when GET /' , ( ) => request ( app ) . get ( '/' ) . expect ( 200 ) ) ;
27
+ it ( 'load home page when GET /' , ( ) => {
28
+ request ( app ) . get ( '/' ) . expect ( 200 ) ;
29
+ } ) ;
28
30
29
- it ( '404 when page not found' , ( ) => request ( app ) . get ( '/foo/bar' ) . expect ( 404 ) ) ;
31
+ it ( '404 when page not found' , ( ) => {
32
+ request ( app )
33
+ . get ( '/foo/bar' )
34
+ . expect ( new Error ( 'Not Found' ) ) ;
35
+ } ) ;
30
36
} ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Header, Jumbotron } from 'watson-react-components';
4
4
5
5
// eslint-disable-next-line
6
6
const DESCRIPTION = 'Natural Language Classifier applies deep learning techniques to make predictions about the best predefined classes for short sentences or phrases.' ;
7
+ const TERMS_OF_USE_URL = 'https://watson-developer-cloud.github.io/terms?name=Natural%20Language%20Classifier%20Demo' ;
7
8
8
9
export class Layout extends React . Component {
9
10
constructor ( props ) {
@@ -56,6 +57,12 @@ export class Layout extends React.Component {
56
57
startInBluemix = "https://cloud.ibm.com/registration/?target=%2Fcatalog%2Fservices%2Fnatural-language-classifier%3FhideTours%3Dtrue%26cm_mmc%3D-_-Watson%2BCore_Watson%2BCore%2B-%2BPlatform-_-WW_WW-_-wdc-ref%26cm_mmc%3D-_-Watson%2BCore_Watson%2BCore%2B-%2BPlatform-_-WW_WW-_-wdc-ref%26cm_mmca1%3D000000OF%26cm_mmca2%3D10000409"
57
58
description = { DESCRIPTION }
58
59
/> : null }
60
+ < div className = "_container _container_large gdpr-info" >
61
+ By using this application, you agree to the
62
+ < a target = "_blank" rel = "noreferrer noopener" href = { TERMS_OF_USE_URL } >
63
+ Terms of Use
64
+ </ a >
65
+ </ div >
59
66
< div id = "root" >
60
67
{ children }
61
68
</ div >
You can’t perform that action at this time.
0 commit comments