Ejemplo n.º 1
0
 before(function(done){
   request({
     url: 'http://localhost:3030/language/?__ocAcceptLanguage=en-US',
     json: true,
     headers: { 'accept-language': 'ja-JP' }
   }, next(done));
 });
Ejemplo n.º 2
0
 before(function(done){
   request({
     url: 'http://localhost:3030/hello-world',
     headers: {'Accept': 'application/vnd.oc.unrendered+json'},
     json: true
   }, next(done));
 });
Ejemplo n.º 3
0
 before(function(done){
   request({
     url: 'http://localhost:3030/',
     method: 'post',
     json: true,
     body: {}
   }, next(done));
 });
Ejemplo n.º 4
0
 before(function(done){
   request({
     url: 'http://localhost:3030/',
     method: 'post',
     json: true,
     body: {
       components: [
         {name:'welcome', parameters: { firstName: 'Mickey', lastName: 'Mouse' }},
         {name:'welcome', parameters: { firstName: 'Donald', lastName: 'Duck' }}
       ]
     }
   }, next(done));
 });
Ejemplo n.º 5
0
 before(function(done){
   request({
     url: 'http://localhost:3030/',
     method: 'post',
     json: true,
     body: {
       components: [
         {name:'hello-world'},
         {name:'no-containers'}
       ]
     }
   }, next(done));
 });
Ejemplo n.º 6
0
 before(function(done){
   request({
     url: 'http://localhost:3030/',
     method: 'post',
     headers: {'Accept': 'application/vnd.oc.unrendered+json'},
     json: true,
     body: {
       components: [
         {name:'hello-world'},
         {name:'no-containers'}
       ]
     }
   }, next(done));
 });
Ejemplo n.º 7
0
 before(function(done){
   request({
     url: 'http://localhost:3030/',
     method: 'post',
     json: true,
     body: {
       parameters: { firstName: 'John' },
       components: [
         {name:'welcome-with-optional-parameters', parameters: { lastName: 'Smith', nick: 'smithy'}},
         {name:'welcome-with-optional-parameters', parameters: { lastName: 'Smith'}},
         {name:'welcome-with-optional-parameters', parameters: { nick: 'smithy'}}
       ]
     }
   }, next(done));
 });
Ejemplo n.º 8
0
 before(function(done){
   request({
     url: 'http://localhost:3030/hello-world',
     json: true
   }, next(done));
 });
Ejemplo n.º 9
0
 before(function(done){
   request({
     url: 'http://localhost:3030/handlebars3-component',
     json: true
   }, next(done));
 });
Ejemplo n.º 10
0
 before(function(done){
   request({
     url: 'http://localhost:3030/no-containers',
     json: true
   }, next(done));
 });
Ejemplo n.º 11
0
 before(function(done){
   request({
     url: 'http://localhost:3030/container-with-multiple-nested',
     json: true
   }, next(done));
 });