Skip to content

testMethodPermissive is failing #21

@neonstalwart

Description

@neonstalwart

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions