cartodb-4.42/lib/assets/test/spec/dashboard/views/api-keys/header-view-model.spec.js
2024-04-06 05:25:13 +00:00

35 lines
1.0 KiB
JavaScript

var HeaderViewModel = require('dashboard/views/api-keys/header-view-model');
var headerViewModelTests = require('../../shared/header-view-model');
describe('dashboard/views/api-keys/header-view-model', function () {
beforeEach(function () {
this.viewModel = new HeaderViewModel();
});
headerViewModelTests.call(this);
describe('.breadcrumbTitle', function () {
it('should always return a string', function () {
expect(this.viewModel.breadcrumbTitle()).toEqual(jasmine.any(String));
});
});
describe('.isDisplayingDatasets', function () {
it('should always return false', function () {
expect(this.viewModel.isDisplayingDatasets()).toBeFalsy();
});
});
describe('.isDisplayingMaps', function () {
it('should always return false', function () {
expect(this.viewModel.isDisplayingMaps()).toBeFalsy();
});
});
describe('.isDisplayingLockedItems', function () {
it('should always return false', function () {
expect(this.viewModel.isDisplayingLockedItems()).toBeFalsy();
});
});
});