How to use the nano.test.third function in nano

To help you get started, we’ve selected a few nano examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NemProject / NanoWallet / tests / specs / namespaceModule.spec.js View on Github external
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"];
    });

nano

The official CouchDB client for Node.js

Apache-2.0
Latest version published 3 months ago

Package Health Score

88 / 100
Full package analysis