{I" class:ETI"BundledAsset;FI"logical_path;TI",social_networking/services/AlertSpec.js;FI" pathname;TI"v/Users/usabilitymonitor/Desktop/Github/social_networking/spec/javascripts/social_networking/services/AlertSpec.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+ķ ĶUI" length;TiI" digest;TI"%5cfa8533bf1fcfdfa218403dc623d6aa;FI" source;TI"describe('Alert', function() { var alertService; beforeEach(module('socialNetworking.services')); beforeEach(function() { inject(function($injector) { alertService = $injector.get('alertService'); }); }); describe('#addError', function() { it('adds an error alert to the alerts array', function() { expect(alertService.alerts).toEqual([]); alertService.addError("Big Peanut"); expect(alertService.alerts).toEqual([{ cssClass: "alert-danger", message: "Big Peanut" }]) }); }); describe('#getAlerts', function() { it('returns all alerts', function() { expect(alertService.getAlerts()).toEqual([]); alertService.alerts = ['foo'] expect(alertService.getAlerts()).toEqual(['foo']); }); }); describe('#removeAlert', function() { it('removes alert from array of alerts', function() { alertService.alerts = ['alert'] alertService.removeAlert('alert'); expect(alertService.alerts).toEqual([]); }); }); }); ;TI"required_assets_digest;TI"%a37b5e8659bed6bf8e22eb8caf4fd410;FI" _version;TI"%069e88c06b889877799890854d7f4c40;F