Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testMethodPermissive is failing #21

Open
neonstalwart opened this issue Dec 29, 2011 · 0 comments
Open

testMethodPermissive is failing #21

neonstalwart opened this issue Dec 29, 2011 · 0 comments

Comments

@neonstalwart
Copy link
Member

the facet/model used for the permissive tests is created via the following code that uses an existing (Permissive) model as the appliesTo

var permissiveFacet = Permissive(model, {
    extraStaticMethod: function(){
        return 4;
    }
});

if permissiveFacet.get(1) is called, the object returned does not include the properties from the prototype of model.

i'm not sure what the correct behavior should be. if the schema for permissiveFacet has no prototype, is it supposed to use the prototype from the model facet? would the behavior be different for the Restrictive facet?

i'm thinking that for Permissive, if no prototype was provided by the new schema then use the existing prototype. for Restrictive, if no prototype was provided by the new schema use an empty prototype. is that right?

neonstalwart added a commit to neonstalwart/perstore that referenced this issue Dec 29, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant