public void RegisteringSingleFunctionInDifferentEnvironmentsWorks() { var env = new Env(); env.AddPlugin(new TestPlugin1()); Assert.DoesNotThrow(() => { var newEnv = new Env(); newEnv.AddPlugin(new TestPlugin1()); }); }
public void ImportantCommentIsLeftInOutputWithMinificationEnabled() { var input = @"/*! don't remove me */"; DefaultEnv = () => { var env = new Env(); env.AddPlugin(new PassThroughAfterPlugin()); env.AddPlugin(new PassThroughBeforePlugin()); env.KeepFirstSpecialComment = true; env.Compress = true; return env; }; AssertLessUnchanged(input, DefaultParser()); }