@@ -421,69 +421,6 @@ describe("Entities Endpoint", function() {
421421
422422} ) ;
423423
424- describe ( "Entities Linked Endpoint" , function ( ) {
425- beforeEach ( function ( done ) {
426- var mockResponse = JSON . stringify ( { 'name' :'Rosette API' , 'versionChecked' :true } ) ;
427-
428- nock ( 'https://api.rosette.com' , { "encodedQueryParams" : true } )
429- . post ( '/rest/v1/info' )
430- . query ( { "clientVersion" :"1.1" } )
431- . reply ( 200 , JSON . parse ( mockResponse ) ) ;
432-
433- nock ( 'https://api.rosette.com' , { "encodedQueryParams" : true } )
434- . post ( '/rest/v1/entities/linked' )
435- . query ( { "clientVersion" :"1.1" } )
436- . reply ( 200 , JSON . parse ( mockResponse ) ) ;
437- done ( ) ;
438- } ) ;
439-
440- afterEach ( function ( done ) {
441- nock . cleanAll ( ) ;
442- done ( ) ;
443- } ) ;
444-
445- it ( "successfully calls the entities linked endpoint" , function ( done ) {
446- var api = new Api ( '123456789' , 'https://api.rosette.com/rest/v1' ) ;
447- api . parameters . content = "Some Content" ;
448- api . parameters . linked = true ;
449-
450- api . rosette ( "entities" , function ( err , res ) {
451- chai . expect ( err ) . to . be . null ;
452- chai . expect ( res . name ) . to . equal ( 'Rosette API' ) ;
453- done ( ) ;
454- } ) ;
455-
456- } ) ;
457-
458- it ( "detects content and contentUri are defined" , function ( done ) {
459- var api = new Api ( '123456789' , 'https://api.rosette.com/rest/v1' ) ;
460- api . parameters . content = "Sample Content" ;
461- api . parameters . contentUri = "http://some.url.com" ;
462- api . parameters . linked = true ;
463-
464- api . rosette ( "entities" , function ( err , res ) {
465- chai . expect ( err ) . to . not . be . null ;
466- chai . expect ( err . name ) . to . equal ( 'RosetteException' ) ;
467- chai . expect ( err . message ) . to . contain ( 'badArgument' ) ;
468- done ( ) ;
469- } ) ;
470- } ) ;
471-
472- it ( "detects neither content nor contentUri are defined" , function ( done ) {
473- var api = new Api ( '123456789' , 'https://api.rosette.com/rest/v1' ) ;
474- api . parameters . linked = true ;
475-
476- api . rosette ( "entities" , function ( err , res ) {
477- chai . expect ( err ) . to . not . be . null ;
478- chai . expect ( err . name ) . to . equal ( 'RosetteException' ) ;
479- chai . expect ( err . message ) . to . contain ( 'badArgument' ) ;
480- done ( ) ;
481- } ) ;
482- } ) ;
483-
484- } ) ;
485-
486-
487424describe ( "Morphology Endpoint (suite covers all features)" , function ( ) {
488425 beforeEach ( function ( done ) {
489426 var mockResponse = JSON . stringify ( { 'name' : 'Rosette API' , 'versionChecked' : true } ) ;
@@ -774,4 +711,3 @@ describe("Error 409 Incompatible Binding Check", function() {
774711 } ) ;
775712
776713} ) ;
777-
0 commit comments