Last active
December 19, 2015 06:09
-
-
Save bittersweetryan/5909526 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var server = sinon.fakeServer.create(); | |
server.respondWith( | |
'PUT', | |
'http://localhost/JavaScriptLogging.ashx.+', | |
[ | |
200, | |
{ "Content-Type": "application/json" }, | |
'{ "success": true }' | |
] | |
); | |
server.respondWith( | |
/http:\/\/localhost\/(PersonSearch|HouseholdSearch|OrgTrustSearch|ProductSearch|UniversalSearch).+/, | |
[ | |
200, | |
{ "Content-Type": "application/json" }, | |
'[{"FirstName":"Allan","MiddleInitial":"M","LastName":"Smith","Lineage":"","Salutation":"Mr","Gender":"M","Age":"51","LegalEnityId":"35958248","LegEntTypeCde":"02","City":"Las Vegas","State":"NV","Zip":"89129","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"060585"},{"FirstName":"Allen","MiddleInitial":"R","LastName":"Smith","Lineage":"","Salutation":"","Gender":"M","Age":"68","LegalEnityId":"14259987","LegEntTypeCde":"02","City":"Albuquerque","State":"NM","Zip":"87108","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":" "},{"FirstName":"Alvin","MiddleInitial":"G","LastName":"Smith","Lineage":"","Salutation":"Mr","Gender":"M","Age":"69","LegalEnityId":"36176507","LegEntTypeCde":"02","City":"Cedar Falls","State":"IA","Zip":"50613","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"068911"},{"FirstName":"Amy","MiddleInitial":"P","LastName":"Smith","Lineage":"","Salutation":"Mrs","Gender":"F","Age":"42","LegalEnityId":"35080874","LegEntTypeCde":"02","City":"Trenton","State":"NJ","Zip":"08690","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"069594"},{"FirstName":"Andrew","MiddleInitial":"","LastName":"Smith","Lineage":"","Salutation":"","Gender":"","Age":"57","LegalEnityId":"51760549","LegEntTypeCde":"02","City":"","State":"","Zip":"","LegEntSrcCde":19,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":" "},{"FirstName":"Allan","MiddleInitial":"M","LastName":"Smith","Lineage":"","Salutation":"Mr","Gender":"M","Age":"51","LegalEnityId":"35958248","LegEntTypeCde":"02","City":"Las Vegas","State":"NV","Zip":"89129","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"060585"},{"FirstName":"Allen","MiddleInitial":"R","LastName":"Smith","Lineage":"","Salutation":"","Gender":"M","Age":"68","LegalEnityId":"14259987","LegEntTypeCde":"02","City":"Albuquerque","State":"NM","Zip":"87108","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":" "},{"FirstName":"Alvin","MiddleInitial":"G","LastName":"Smith","Lineage":"","Salutation":"Mr","Gender":"M","Age":"69","LegalEnityId":"36176507","LegEntTypeCde":"02","City":"Cedar Falls","State":"IA","Zip":"50613","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"068911"},{"FirstName":"Amy","MiddleInitial":"P","LastName":"Smith","Lineage":"","Salutation":"Mrs","Gender":"F","Age":"42","LegalEnityId":"35080874","LegEntTypeCde":"02","City":"Trenton","State":"NJ","Zip":"08690","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"069594"},{"FirstName":"Andrew","MiddleInitial":"","LastName":"Smith","Lineage":"","Salutation":"","Gender":"","Age":"57","LegalEnityId":"51760549","LegEntTypeCde":"02","City":"","State":"","Zip":"","LegEntSrcCde":19,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":" "},{"FirstName":"Allan","MiddleInitial":"M","LastName":"Smith","Lineage":"","Salutation":"Mr","Gender":"M","Age":"51","LegalEnityId":"35958248","LegEntTypeCde":"02","City":"Las Vegas","State":"NV","Zip":"89129","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"060585"},{"FirstName":"Allen","MiddleInitial":"R","LastName":"Smith","Lineage":"","Salutation":"","Gender":"M","Age":"68","LegalEnityId":"14259987","LegEntTypeCde":"02","City":"Albuquerque","State":"NM","Zip":"87108","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":" "},{"FirstName":"Alvin","MiddleInitial":"G","LastName":"Smith","Lineage":"","Salutation":"Mr","Gender":"M","Age":"69","LegalEnityId":"36176507","LegEntTypeCde":"02","City":"Cedar Falls","State":"IA","Zip":"50613","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"068911"},{"FirstName":"Amy","MiddleInitial":"P","LastName":"Smith","Lineage":"","Salutation":"Mrs","Gender":"F","Age":"42","LegalEnityId":"35080874","LegEntTypeCde":"02","City":"Trenton","State":"NJ","Zip":"08690","LegEntSrcCde":1,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":"069594"},{"FirstName":"Andrew","MiddleInitial":"","LastName":"Smith","Lineage":"","Salutation":"","Gender":"","Age":"57","LegalEnityId":"51760549","LegEntTypeCde":"02","City":"","State":"","Zip":"","LegEntSrcCde":19,"AliasLastName":"","AliasMiddleName":"","AliasFirstName":"","SearchString":"smith","SearchType":"0","FRNumbers":" "}]' | |
] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment