Skip to content

Commit

Permalink
re-described component initialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Jun 16, 2017
1 parent 6e6cafd commit 27aa83c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/spec/routing.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ describe('Routing Test', function () {

describe('Basic Routing Check', function () {

it('checks routing component is working', function (done) {
it('checks routing component is initialized.', function (done) {
var routingControl = L.Mapzen.routing.control({
router: L.Mapzen.routing.router({costing: 'bicycle'})
});
done();
});

it('checks routing component with both apikey and option is working', function (done) {
it('checks routing component with both apikey and option is initialized', function (done) {
var routingControl = L.Mapzen.routing.control({
router: L.Mapzen.routing.router('mapzen-cstHyBQ', {costing: 'bicycle'})
});
Expand Down
8 changes: 4 additions & 4 deletions test/spec/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ describe('Search Test', function () {
})

describe('Basic Geocoder Check', function () {
it('checks geocoder is working', function (done) {
it('checks geocoder is initialized', function (done) {
var geocoder = L.Mapzen.geocoder();
done();
});

it('checks geocoder with api key is working', function (done) {
it('checks geocoder with api key is initialized', function (done) {
var geocoder = L.Mapzen.geocoder('mapzen-cstHyBQ');
done();
});

it('checks geocoder with option is working', function (done) {
it('checks geocoder with option is initialized', function (done) {
var geocoder = L.Mapzen.geocoder({
autocomplete: false,
attribution: 'test attribution'
});
done();
});

it('checks geocoder with both api key and option is working', function (done) {
it('checks geocoder with both api key and option is initialized', function (done) {
var geocoder = L.Mapzen.geocoder('mapzen-cstHyBQ', {
autocomplete: false
});
Expand Down

0 comments on commit 27aa83c

Please sign in to comment.