mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Browser testing: add test for passing null/None to misc_info during an update
This commit is contained in:
@@ -223,6 +223,15 @@ spaceghost.test.begin( 'Test the HDA API', 0, function suite( test ){
|
||||
this.test.assert( hdaShow.misc_info === unicodeInfo,
|
||||
"Update accepted unicode misc_info: " + hdaShow.misc_info );
|
||||
|
||||
this.test.comment( 'update should set misc_info to the empty string if sent null/None' );
|
||||
returned = this.api.hdas.update( lastHistory.id, firstHda.id, {
|
||||
misc_info : null
|
||||
});
|
||||
//this.debug( 'returned:\n' + this.jsonStr( returned ) );
|
||||
hdaShow = this.api.hdas.show( lastHistory.id, firstHda.id );
|
||||
this.test.assert( hdaShow.misc_info === '',
|
||||
"Update used null as the empty string: " + hdaShow.misc_info );
|
||||
|
||||
// ........................................................................................... annotation
|
||||
// currently fails because no annotation is returned in details
|
||||
this.test.comment( 'update should allow changing the annotation' );
|
||||
|
||||
Reference in New Issue
Block a user