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
| class Foo { | |
| constructor() { | |
| this.baz = "baz"; | |
| } | |
| doStuff() { | |
| console.log(this.baz); | |
| } | |
| } |
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
| const createCar = (carMake) => { | |
| const make = carMake; | |
| return { | |
| getMake: () => { | |
| return make | |
| } | |
| } | |
| } |
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
| class Car { | |
| constructor(make) { | |
| this.make = make | |
| } | |
| getMake() { | |
| return this.make; | |
| } | |
| } |
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
| var Foo = function() { | |
| // ... | |
| }; | |
| Foo.prototype = { | |
| logBar: function() { | |
| console.log("bar"); | |
| }, | |
| logFoo: function() { | |
| console.log("foo"); |
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
| var Foo = function() { | |
| // ... | |
| }; | |
| Foo.prototype.logBar = function() { | |
| console.log("bar"); | |
| }; | |
| Foo.prototype.logFoo = function() { | |
| console.log("foo"); |
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
| QUnit.module("Counter Tests", { | |
| setup: function() { | |
| }, | |
| teardown: function() { | |
| } | |
| }) |
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
| [Test] | |
| public void SchedulerController_Should_start_background_process_on_post() | |
| { | |
| // Arrange | |
| var controller = new SchedulerController(_context, _client); | |
| // Act | |
| controller.Post(new AssetApiModel() {FileName = "foo", Url = "bar"}); | |
| // Assert |