var request = require('supertest');
var app = require('../app');
describe("post should return json", function (){

    it("posts a new user to /users", function(done){
        var json = {
            "place_id": "122867135",
            "licence": "Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright",
            "osm_type": "way",
            "osm_id": "256182825",
            "boundingbox": [
                "53.701227",
                "53.702108",
                "23.833112",
                "23.8368386"
            ],
            "lat": "53.70177645",
            "lon": "23.8347894179425",
            "display_name": "OldCity, 17, улица Дубко, Девятовка, Ленинский район, Hrodna, Hrodna region, 230012, Belarus",
            "class": "shop",
            "type": "mall",
            "importance": 0.101
        };

        request("http://localhost:7788")
            .post("/api")
            .send('name')
            .expect(200)
            .expect(json, done);
        
    });
});
@@ -72,82 +72,160 @@
 be(%22
-post should return json%22, function ()%7B%0A%0A    it(%22posts a new user to /users
+transforms the name of the object in a coordinate%22, function ()%7B%0A%0A    it(%22Input place name-string,base coordinate, return coordinate and full name point
 %22, f
@@ -239,24 +239,25 @@
 (done)%7B%0A
+%0A
         
 var json
@@ -252,414 +252,245 @@
     
-var json = %7B%0A            %22place_id%22: %22122867135%22,%0A            %22licence%22: %22Data %C2%A9 OpenStreetMap contributors, ODbL 1.0. http:%5C/%5C/www.openstreetmap.org%5C/copyright%22,%0A            %22osm_type%22: %22way%22,%0A            %22osm_id%22: %22256182825%22,%0A            %22boundingbox%22: %5B%0A                %2253.701227%22,%0A                %2253.702108%22,%0A                %2223.833112%22,%0A                %2223.8368386%22%0A            %5D,%0A            %22
+request(app)%0A            .post(%22localhost:7788/serch%D0%A1oordinate%22)%0A            .send(%7BSearchString:'Oldcity', Base%D0%A1oordinate: %7Blat: %2253.93892%22, lon: %2228.6496%22%7D%7D) //%D1%82%D0%B5%D0%BA%D1%81 + %D0%BA%D0%BE%D0%BE%D1%80%D0%B4%D0%B8%D0%BD%D0%B0%D1%82%D0%B0 %D0%B1%D0%B0%D0%B7%D0%BE%D0%B2%D0%B0%D1%8F%0A            .expect(200)%0A            .expect(%7B
 lat
-%22
 : %225
@@ -505,26 +505,12 @@
 45%22,
-%0A            %22
+ 
 lon
-%22
 : %222
@@ -539,17 +539,20 @@
         
-%22
+    
 display_
@@ -555,17 +555,16 @@
 lay_name
-%22
 : %22OldCi
@@ -655,259 +655,29 @@
 rus%22
-,%0A            %22class%22: %22shop%22,%0A            %22type%22: %22mall%22,%0A            %22importance%22: 0.101%0A        %7D;%0A%0A        request(%22http://localhost:7788%22)%0A            .post(%22/api%22)%0A            .send('name')%0A            .expect(200)%0A            .expect(json,
+%7D);%0A           
  done
+(
 );%0A 

add example test for pull request