[Identity] Provide an undefined identity
Provide an undefined identity by default, instead of an Unknown User. This suppresses display of identity-related features (such as the identity indicator) while still providing a default implementation of the identityService for platform components to utilize. nasa/openmctweb#99
This commit is contained in:
@@ -46,15 +46,12 @@ define(
|
||||
provider = new IdentityProvider(mockQ);
|
||||
});
|
||||
|
||||
it("provides an unknown user", function () {
|
||||
it("provides an undefined user", function () {
|
||||
provider.getUser().then(mockCallback);
|
||||
|
||||
waitsFor(calledBack);
|
||||
runs(function () {
|
||||
expect(mockCallback).toHaveBeenCalledWith({
|
||||
key: jasmine.any(String),
|
||||
name: jasmine.any(String)
|
||||
});
|
||||
expect(mockCallback).toHaveBeenCalledWith(undefined);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user