Created
March 25, 2016 20:03
-
-
Save allenluce/5cd48efd4a42db04cb0b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('proxy', function () { | |
it('context', function () { | |
const sandbox = { | |
p: new Proxy.ProviderProxy('hey') | |
} | |
const context = new vm.createContext(sandbox) | |
const script = new vm.Script('value = p._get()') | |
script.runInContext(context) | |
expect(sandbox.value).to.equal('hey') | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment