Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let scope = $rootScope.$new();
createDummyWalletContextTestnet(Wallet);
let ctrl = $controller('NamespacesCtrl', {
$scope: scope
});
ctrl.namespaceOwned["nano.test.third"] = {
"owner": "TAF7BPDV22HCFNRJEWOGLRKBYQF65GBOLQPI5GGO",
"fqn": "nano.test.third",
"height": 547741
}
let NSarray = $filter('objValues')(ctrl.namespaceOwned);
// Act & Assert
expect(ctrl.isNotLevel3(NSarray[0])).toBe(true);
expect(ctrl.isNotLevel3(NSarray[1])).toBe(false);
delete ctrl.namespaceOwned["nano.test.third"];
});