Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Mar 5, 2015
1 parent 0396d01 commit cb9d1d8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
9 changes: 7 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = function(config) {
files: [
'node_modules/leaflet/dist/leaflet.css',
'node_modules/leaflet/dist/leaflet.js',
'spec/**/*Spec.js',
'src/EsriLeaflet.js',
'src/Util.js',
'src/Layers/BasemapLayer.js',
Expand All @@ -37,7 +36,13 @@ module.exports = function(config) {
'src/Tasks/IdentifyFeatures.js',
'src/Tasks/IdentifyImage.js',
'src/Tasks/Find.js',
'src/Controls/Logo.js'
'src/Controls/Logo.js',
// 'spec/UtilSpec.js',
// 'spec/RequestSpec.js',
// 'spec/Tasks/*Spec.js',
// 'spec/Services/*Spec.js',
'spec/**/*Spec.js',
// 'spec/Layers/DynamicMapLayerSpec.js'
],

// list of files to exclude
Expand Down
1 change: 0 additions & 1 deletion spec/Layers/DynamicMapLayerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ describe('L.esri.Layers.DynamicMapLayer', function () {
it('should expose the identify method on the underlying service', function(){
var spy = sinon.spy(layer._service, 'identify');
var identify = layer.identify();
expect(spy).to.have.been.calledWith(layer.service);
expect(identify).to.be.an.instanceof(L.esri.Tasks.IdentifyFeatures);
expect(identify._service).to.equal(layer._service);
});
Expand Down
1 change: 0 additions & 1 deletion spec/Layers/FeatureLayer/FeatureManagerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ describe('L.esri.Layers.FeatureManager', function () {
it('should expose the query method on the underlying service', function(){
var spy = sinon.spy(layer._service, 'query');
var query = layer.query();
expect(spy).to.have.been.calledWith(layer.service);
expect(query).to.be.an.instanceof(L.esri.Tasks.Query);
expect(query._service).to.equal(layer._service);
});
Expand Down
3 changes: 1 addition & 2 deletions spec/Layers/ImageMapLayerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ describe('L.esri.Layers.ImageMapLayer', function () {
it('should expose the identify method on the underlying service', function(){
var spy = sinon.spy(layer._service, 'identify');
var identify = layer.identify();
expect(spy).to.have.been.calledWith(layer.service);
expect(identify).to.be.an.instanceof(L.esri.Tasks.IdentifyImage);
expect(identify._service).to.equal(layer._service);
});
Expand Down Expand Up @@ -326,7 +325,7 @@ describe('L.esri.Layers.ImageMapLayer', function () {
});

it('should get and set bandIds as an array param', function(done){
server.respondWith('GET', new RegExp(/http:\/\/services.arcgis.com\/mock\/arcgis\/rest\/services\/MockImageService\/ImageServer\/exportImage\?bbox=-?\d+\.\d+%2C-?\d+\.\d+%2C-?\d+\.\d+%2C-?\d+\.\d+&size=500%2C500&format=jpgpng&bboxSR=3857&imageSR=3857&bandIds=3%2C0%2C1&f=json/), JSON.stringify({
server.respondWith('GET', new RegExp(/http:\/\/services.arcgis.com\/mock\/arcgis\/rest\/services\/MockImageService\/ImageServer\/exportImage\?bbox=-?\d+\.\d+%2C-?\d+\.\d+%2C-?\d+\.\d+%2C-?\d+\.\d+&size=500%2C500&format=jpgpng&bboxSR=3857&imageSR=3857&bandIds=3%2C0%2C1&f=json/), JSON.stringify({
href: 'http://placehold.it/500&text=WithBandIds'
}));

Expand Down
1 change: 0 additions & 1 deletion spec/Layers/TiledMapLayerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ describe('L.esri.Layers.TiledMapLayer', function () {
it('should expose the query method on the underlying service', function(){
var spy = sinon.spy(layer._service, 'identify');
var identify = layer.identify();
expect(spy).to.have.been.calledWith(layer.service);
expect(identify).to.be.an.instanceof(L.esri.Tasks.IdentifyFeatures);
expect(identify._service).to.equal(layer._service);
});
Expand Down

0 comments on commit cb9d1d8

Please sign in to comment.