FLUID-4675: Stub out require() and fluid.require() when testing code in the browser

Metadata

Source
FLUID-4675
Type
New Feature
Priority
Major
Status
Reopened
Resolution
N/A
Assignee
Colin Clark
Reporter
Colin Clark
Created
2012-03-09T16:22:07.575-0500
Updated
2024-07-22T11:02:53.167-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Framework

Description

Now that Infusion is packaged as a Node.js module and can be successfully loaded using .require(), we need a testing stub that allows us to take code that uses require() or fluid.require() and run it the browser. Any calls to either function should return a copy of Infusion if it is being required, otherwise should throw an error.